| 04-02-2004, 06:41 AM | #1 |
I'm working on a Commander unit using abilities as his commands. I've created an "Attack Command" ability using the crushing wave ability as a base, and gave it to my Commander unit. I just took away all the damage and the effects so all that happens is the unit raises his sword when he uses it. My trigger looks like this right now (btw, player 1 is the computer player that controls the army ): Event: Unit - A unit begins casting an ability Conditions: (Ability being cast) equal to Attack Command Actions: Unit Group - Order (Units within 1000 of (position of (triggering unit)) matching ((Owner of (matching unit)) equal to Player 1 (red) to attack ground (target point of ability being cast) Now testing this I see that when the Commander uses the ability it only grabs 12 units at a time instead of all the units around him so Question 1: How can I make this ability grab all the units around him? Also, the units that receive the command seem to run to the target point, and then turn around and return where they were, so Question 2: How can I make the units receiving this attack command to attack that point and then stop, staying there. If anyone out there is really into the helpful mood :) Ideally I want the commander unit to use this ability, have it select all the units in range from the ally computers army, make them do the equivalent of me selecting attack and clicking on the ground wherever I target the ability. I'd also like the Commander to be able to specifically target seige units and structures giving the order to directly attack them instead of just attack area. So, looking forward to any help I can get on this one cause I've been messing with it for a while and aren't getting anywhere. |
| 04-02-2004, 06:54 AM | #2 |
I can't work with Triggers all that well, and not to even start about the spell-triggers, but perhaps that stun attack of the TC can work better then Crushing wave. Well, I'm not sure, since I don't have much knowledge about it... Heck, I'm a terrainer :P |
| 04-02-2004, 05:36 PM | #3 |
start the new day with a bump... heh, thanks for the replay fladian, but I don't think the spell I'm using really matters, I'm taking everything out of it so the ability itself does nothing other than provide a point of referance for the trigger. |
| 04-02-2004, 05:50 PM | #4 |
Well... the fact that the commanded units are returning to their original positions suggests that they're neutral units returning to guard positions. I know there's some action to ignore guard positions; I think you need to put it in Map Initialization. As for the fact that only 12 units get the command, my guess is that WC3 can only issue an order to an entire Unit Group if the Unit Group has less than 13 units in it (after all, you can only select 12 units). I think that may be solved if you "Unit Group: Pick every unit in (units within 1000 etc.) and order Picked Unit to (attack ground etc.)" However, note that they will not attack in formation! If you want them to attack in formation, you can still have them attack in groups of 12; just have your trigger: 1-add all the units that are going to be commanded to a Unit Group variable X. 2-randomly select 12 units from X, remove them from X and add them to another Unit Group Y. 3-Order Y to attack whatever. 4-Remove all units from Y 5-Return to step 2, unless X is empty. Good luck!! |
| 04-03-2004, 07:42 AM | #5 |
Don't have "attack ground" instead use "Attack-Move-To" |
| 04-04-2004, 06:32 PM | #6 |
I had been wondering if that was the command I wanted, thanks Patrux |
| 04-07-2004, 02:03 AM | #7 | |
Quote:
I like the idea for getting all the units to move ligature, but any ideas on how to add all the units within range of commander to the variable? I can't find any triggers to help do this. |
| 04-07-2004, 08:58 AM | #8 |
n/m I found a way to make it work :) |
