Use a family. If the balls are in a family, you can use conditions in the family to pick a different set of objects.
For example:
+ MyFamily 'selected' = 1
+ Ball overlaps MyFamily
-> Do action on ball
In the actions, "Ball" relates to the objects overlapping the selected instance, and "MyFamily" relates to the object with selected = 1.