Thanks for the advice, I have really tried to wrap my head around the issue , and looked in arraymaker etc. But haven't figured out a better way to accomplish my goals.
In short I have a system of 45 tiles, and after determining which tile the player is standing on, I have to determine which direction they are facing when I mouse pick,
or rather which of 4 box colliders they are clicking on (as they might actually be facing perpendicular on the side of the tile.)
After determining the positioning there is a list of tiles they can place in front of them, which differs depending on their positioning on the board (rank and file.)
I've been wrapping my head around the issue for a week or so, but I did figure out a way to bruteforce it, (im using 45 collider events to record entering tiles and updating rank and file) and on of each of these I have 4 additional colliders to identify direction.)
Here's the set up to determine whether or not a tile is already placed in that direction.
Additional states to determine, exactly what category of tile will be selected.
Now each of those 32 states will be randomizing 3 variables out of a group of 60 tiles (out of 520 total).
I was originally going to have them just come up with numbers and then have a separate state machine sort it out (hence a 520 event state).
But now I think I am planning on having those 32 states send FSM event to 32 different state machines, that are each dealing with 3 states with an average of 40 events each...
Here's a test example of that with 3 states with 21 events each.
Not sure which method is less complicated...
I am new at this, and I'm sure there are much more simple solutions, but it's been a good learning experience.