Large Scale Massing

AEK

New Member
Reaction score
0
I've posted about massing in two other threads but this is for a different problem than the other two threads were about.

Ok, firstly i'm creating a mass-attack for a game. This is the trigger.

Code:
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Mass Middle 
    Actions
        Set Mass_tmp_group = (Units owned by (Owner of (Triggering unit)) matching (((Unit-type of (Matching unit)) Not equal to Base Wisp) and ((((Matching unit) is A Hero) Equal to False) and ((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))))))
        Set Mass_tmp_point = (Center of Mid <gen>)
        Unit Group - Pick every unit in Mass_tmp_group and do (Actions)
            Loop - Actions
                Unit Group - Order Mass_tmp_group to Attack-Move To Mass_tmp_point
        Custom script:   call DestroyGroup (udg_Mass_tmp_group)
        Custom script:   call RemoveLocation (udg_Mass_tmp_point)

In that form it only sends 12 units, and i want it to send ALL units.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Unit Group - Order

That's normal with that action.

Though, since you're already looping the group... use "Unit - Order (Picked unit) ...".


> Owner of (Matching unit)) Equal to (Owner of (Triggering unit))

Not needed as you already take only units owned by that player.
 
Reaction score
456
Code:
        Unit Group - Pick every unit in Mass_tmp_group and do (Actions)
            Loop - Actions
                Unit - Order (Picked unit) to Move To Attack-Move To Mass_tmp_point
Try that instead.

EDIT:// =_='
 

AEK

New Member
Reaction score
0
Thank you very much, u both will recieve credit in the map when i finish it :D

> Not needed as you already take only units owned by that player.

Lol that is true!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top