One way could be to do this. Each is a seperate event.
Global number numPicked=0
Every tick -> set numPicked to 0
Family: is dead -> add family.pickedcount to numPicked
Family: is running -> add family.pickedcount to numPicked
NumPicked=family.count -> trigger action
Or you may be able to do this with two conditions in one event.
System: pick family by comparison family.dead+family.running>0
System: compare family.count=family.pickedcount
->trigger action