This tutorial emulates the victory/defeat of a melee map for those who are unable to use the standard melee options.
Attached is the editor file. The video above goes into a little more detail about how it works.
Edit: So since the creation of this tutorial, I found a thread about "nested loops" which are loops within loops. Apparently pick each loops can't handle these, but for each loops can, because they let you specify a variable. Using for each loops would probably be an easier way to code this, but should still end up with the same result.