Looking for a way to toggle whether items from a list are selectable

anonymous_user_0efb4f1d
Sun, 27 Nov 2016 14:57:25 +0000
World Creation

Hello, noob here!

I am making a tile randomizer for the interior of a house. Currently I have it set to place an initial tile in a 4x4 grid, then randomly select a door in that room. It then checks the grid space that the door leads to to see if it is at the edge of the house and whether it is next to any other rooms with either a wall facing it or a door. It saves all of this information. I want to have a list of all possible tiles that can be placed in that space and do a systematic check where if for example, it is a bottom left space, the tiles where the bottom and left have a door are removed from the list, and so on for each wall and then randomly select a tile from the remainder to be placed in that grid space. Then of course, in order to continuously do this until the house is filled, the list would have to be repopulated.

Are there any flow controls or functions that can allow me to toggle whether elements from a list are unselectable after a check?

Thank you so much!

1 post - 1 participant