This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
After checking with someone that is very good with the trigger editor, my post is probably the easiest and most efficient way of doing that in one comparison without having to set up numerous variables.
You don't even need to know Galaxy to create your own functions. It is quite simple, you can be very creative with using what Blizzard has provided.
Its ugly but should satisfy what you need.
(Number of Living units in (Units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount) owned by player 1, with at most Any Amount)) == 1
Here is a broken up portion of the actual comparison.
Comparison Value 1: Number Of Units In Unit Group Type: Living Unit Group: Units In Unit Group For Player Group: Units In Region Matching Condition Unit Type: Any Region: Entire Map Player: Any Player Unit Filter: Excluded: Missile, Dead, Hidden Count: Any Amount Player: 1 Count: Any Amount Operator: == Value 2: 1
After checking with someone that is very good with the trigger editor, my post is probably the easiest and most efficient way of doing that in one comparison without having to set up numerous variables.
You don't even need to know Galaxy to create your own functions. It is quite simple, you can be very creative with using what Blizzard has provided.
Its ugly but should satisfy what you need.
Here is a broken up portion of the actual comparison.