Yeah, I meant why, sorry.
It's just so hard to get my head around that, I understood most of your code but this part...
I get how you're generating the map though;
1. Event sheet "load rooms" is called, new array is created, saves every wall and each exit;
2. Map is generated on "Event Sheet 1" and based on that generation, you get rooms based on the exits it has (random door that has the same number of exits of the square on the map you already generated).
I understand now that you can use booleans as 0 or 1, I had no idea.. but still, let's say that we have a room with 4 doors. That picture I posted would give a result of:
If you add and multiply it like that how can you still know which exits exist in which room?
Sorry if that's simple, I'm not a very good programmer haha!