[Solved] How to change the state of a lot of booleans

What I want to switch the Boolean state of only a few squares (brown and beige) to true (true being valid). This way the board will determine what spots are valid for the player and future AI.

I’ve been messing around for a while and haven’t figured out how to make it switch to only certain squares. The yellow is for the player to see which spots they can go to. All the squares have that highlight, they’re just hidden. They “Show” through certain actions, and when I tried using visibility as a way to switch the Boolean to true, the piece can go all over the board. So right now I really don’t know how to go about it.

Any ideas and suggestions would help!




You haven’t selected any GameBoard objects in the conditions, so the boolean change is being applied to all of them.

I’d suggest you:

  1. set GameBoard.Valid to false in an unconditional event first,
  2. add the “GameBoard is in collision with Highlight” condition to the first event in the above screen shot, and
  3. get rid of the last event in that screen shot.

It Worked!!! Thanks!