mcnorths solution works fine, but it can become a bit tiresome typing in
... and not alive ... and not alive ..., especially if you have lots of units to check (fancy doing that ten times? how about a hundred?)
As mcnorth suggested if the units are in a group then there is an easy solution.
"alive _x" count units group bmp1 == 0This counts the number of living units in bmp1s group (ie bmp1,bmp2,bmp3) and sets off the trigger if all units are dead.
If the units aren't grouped you can define an array of the units you are interested in (use an init file or any init line for this)
bmps = [bmp1,bmp2,bmp3]Now you can use a similar condition to the group one:
"alive _x" count bmpsHope that all makes sense