Random selection of objects trigger

Jun 14, 2022

Hello,

I am trying to figure out how to create a trigger that will prompt a correct or incorrect message, as long as the user has selected the correct amount of boxes when they click submit, even if they have selected the boxes randomly.

For example:

This selection is correct. 

But so is this one:

And so is any other variation as long as the correct amount of boxes are selected.

I'm not sure if I'm over thinking it, but any help is appreciated, thank you.

Rehmat

2 Replies
Steve Gannon

Here you go (see attached). I created a layer with a custom "Count" variable that adds up all of the buttons with Selected states and then hid the appropriate correct/incorrect rectangle mask. (Note: I did this really fast so you will want to verify the button number in all of the triggers to be sure I didn't duplicate or skip any.)