Well, Im working on some kind of inventory system, i got my slots, 1 to 8. Each slot holds place for 1 item ofc. And i ofc named them slot0, slot1, slot2...
And i build an array, which keeps track of the stored items. somethin like this:
If slot 0 overlaps with family.ItemIcons, set array x0y0 = 1
If slot 1 overlaps with family.ItemIcons, set array x1y1 = 1
If slot 2 overlaps with family.ItemIcons
----if slot x1y1 =1. set array x2y2 = 1
every tick - set "slot"...
and heres my trouble.
I want him to detect which slot is filled, and then put the number of the x or y from the array as the slot number how i named them. Is there an expression on that? something like:
set position to: "slot.global variable: itemcount"
Thanks!