| 07-29-2002, 07:27 PM | #1 |
Guest | Okay.. here's what I want to happen. I want to test if units are on different regions. Say 2 units are on region "region1" and 1 unit is on "region2" and when this happens it is supped to create a hero for that player. How would I test this? Originally I set it up like this Event: Every 2 seconds Conditions: Number of Players in (units on region1 controlled by (player 1 red)) equal to 2 Number of Players in (units on region2 controlled by (player 1 red)) equal to 1 Number of Players in (units on region1 controlled by (player 1 red)) equal to 0 Actions: Pick every unit in (units owned by player 1 in region1) and do (remove (picked unit)) Create 1 hero for (player 1 red) But I need to shorten this up. It works perfectly but I'd have to run this same check for every player. Is there a way I can do this for all players in 1 trigger? using (triggering player/unit) doesn't work since there is no triggering unit/player. |
| 07-29-2002, 07:35 PM | #2 |
Use the "pick every player in player group" command, thus instead of using triggering player you can use picked player. |
