Hey there,
I am working on a riddle where items have to be put on a 6x5 grid in a certain way to solve it.
On each part of the grid an item can be dropped. The items have different sizes and can (and do) occupy more than one space.
To make this work properly I figured I'd have to disable the parts of the grid, when they are occupied.
To do so I got one condition for each field, which I can change via Lua script.
Now to do this manually would be possible but it would take ages (8 items on 30 fields)
Is there a way to store the conditions in an array and to disable them via a equation
e.g: I place a 4x4 item on the Field X and thus want to disable X, X+1, X+6 and X+7, so those cant be used anymore.
I hope this explains my issue and that there is a solution
Thanks for any tips and help!