| 06-11-2005, 02:52 AM | #1 |
How come there is no Units in Region owned by Player of Type? Anyway around this, +Matching Condition at the end can do this but how does matching unit work? Another thing Similar, Pick Every Unit that is a Hero Owned by Player, anyway to do that? I was thinking about Risk, and its really gay because the way the triggers are set up only units inside the circle in middle of each territory count, and of course, there is no way around this it seems because the buildings around count as units, refered to first question. For a Hero stuff I'm doing triggers for, it would help alot if I could have help with the second question. Help Please? If theres no way around this can you explain matching unit to me anyway? |
| 06-11-2005, 04:16 AM | #2 |
E - pick every unit in region matching condition picked unit is owned by player 1 C - w/e u want A - kill *matching* unit (not picked) <--- example of how to use matching unit E - pick every unit in region matching condition picked unit is owned by player 1 C - Matching unit is a hero = true A - w/e u want |
| 06-11-2005, 09:50 AM | #3 | |
Quote:
Anyway, the "units in region matching condition" unit-group function allows you to specify a condition (or more of them, if you use and/or) that will be checked for each unit in that region. In that condition, you use "matching unit" to reffer to the unit that is being checked. If the conditions are true, then the unit is added to the group, otherwise, it's not. Here's an example: Code:
Set TempGroup = units in (Your Region) matching (boolean - ((matching unit) is a Hero) equal to True) Set NumberOfHeroesInRegion = number of units in (TempGroup) |
| 06-11-2005, 06:38 PM | #4 |
Timer Expire Red Events Time - Duel expires Conditions Actions Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Triggering unit) instantly to (Center of Duel 001 <gen>)) Just noticed, if a changed triggering unit to Picked Unit would it work? |
| 06-11-2005, 07:20 PM | #5 |
Whoa, sorry guys...I musta been out of it when I typed all that |
| 06-11-2005, 07:54 PM | #6 | |
Quote:
|
