disabling buttons or counting clicks

hello, i was wondering is it posible to limit the number of clicks of a panel?
i have a few cards i want the user to click just two of them at one moment like a puzzle, but im not sure how to, i was bypassing but it was very messy, im sure there is a better way to solve it, i dont know if it is by counting the number of clicks to two maybe and then i dont know how to disable the other panels, i looked for it in google but i couldnt find anything
i am very confused now
thanks in advance

There are a dozen different ways in TD how to handle this.

here’s a simple example attached using a Count CHOP with a limit applied.
But you could also use a Logic CHOP, set to ‘off when outside bounds’ and set the bounds to be between 0 and 2.
If you click Help->Operator Snippets, and lookup the examples for Count CHOP and Logic CHOP you’ll get some inspiration.

And of course you could also script it in Python.
max_2_clicks.tox (1.76 KB)

Thank you very much nettoyeur, your example is awesome!

im going to dive also in the logic, thank you!