Does anyone know why this doesn't work?

Edward

New Member
Reaction score
2
It's a very simple unit mass-attack trigger.

Trigger:
  • Mass Attack Alliance
    • Events
      • Player - Player 1 (Red) types a chat message containing -mass as An exact match
      • Player - Player 2 (Blue) types a chat message containing -mass as An exact match
      • Player - Player 3 (Teal) types a chat message containing -mass as An exact match
      • Player - Player 4 (Purple) types a chat message containing -mass as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -mass as An exact match
      • Player - Player 6 (Orange) types a chat message containing -mass as An exact match
    • Conditions
    • Actions
      • Set MassGroup = (Units owned by (Triggering player))
      • Set Y01 = (Center of Horde Base <gen>)
      • Unit Group - Pick every unit in MassGroup and do (Actions)
        • Loop - Actions
          • Unit Group - Order MassGroup to Attack-Move To Y01
          • Custom script: call DestroyGroup(udg_MassGroup)
          • Custom script: call RemoveLocation(udg_Y01)
 

Yoshii

New Member
Reaction score
74
It's a very simple unit mass-attack trigger.

Trigger:
  • Mass Attack Alliance
    • Events
      • Player - Player 1 (Red) types a chat message containing -mass as An exact match
      • Player - Player 2 (Blue) types a chat message containing -mass as An exact match
      • Player - Player 3 (Teal) types a chat message containing -mass as An exact match
      • Player - Player 4 (Purple) types a chat message containing -mass as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -mass as An exact match
      • Player - Player 6 (Orange) types a chat message containing -mass as An exact match
    • Conditions
    • Actions
      • Set MassGroup = (Units owned by (Triggering player))
      • Set Y01 = (Center of Horde Base <gen>)
      • Unit Group - Pick every unit in MassGroup and do (Actions)
        • Loop - Actions
          • Unit Group - Order MassGroup to Attack-Move To Y01
          • Custom script: call DestroyGroup(udg_MassGroup)
          • Custom script: call RemoveLocation(udg_Y01)

how many unit does the player have? i dont think that would work if the player has more than 12 unit. and it should read Order picked unit to attack move no?
 

Edward

New Member
Reaction score
2
I did that with another trigger

and it didn't

Here's a copy of it

Trigger:
  • Mass Attack Horde
    • Events
      • Player - Player 7 (Green) types a chat message containing -mass as An exact match
      • Player - Player 8 (Pink) types a chat message containing -mass as An exact match
      • Player - Player 9 (Gray) types a chat message containing -mass as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -mass as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -mass as An exact match
      • Player - Player 12 (Brown) types a chat message containing -mass as An exact match
    • Conditions
    • Actions
      • Set MassGroup = (Units in (Playable map area))
      • Set Y02 = (Center of Alliance Base <gen>)
      • Unit Group - Pick every unit in MassGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Picked unit)) Equal to (Triggering player)
            • Then - Actions
              • Unit - Order (Picked unit) to Attack-Move To Y02
              • Custom script: call DestroyGroup(udg_MassGroup)
              • Custom script: call RemoveLocation(udg_Y02)
            • Else - Actions
              • Custom script: call DestroyGroup(udg_MassGroup)
              • Custom script: call RemoveLocation(udg_Y02)
 

Edward

New Member
Reaction score
2
I also tried this

And it only moved about 10% of the units.

Trigger:
  • Mass Attack Horde
    • Events
      • Player - Player 7 (Green) types a chat message containing -mass as An exact match
      • Player - Player 8 (Pink) types a chat message containing -mass as An exact match
      • Player - Player 9 (Gray) types a chat message containing -mass as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -mass as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -mass as An exact match
      • Player - Player 12 (Brown) types a chat message containing -mass as An exact match
    • Conditions
    • Actions
      • Set MassGroup = (Units owned by (Triggering player))
      • Set Y02 = (Center of Alliance Base <gen>)
      • Unit Group - Pick every unit in MassGroup and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To Y02
          • Custom script: call DestroyGroup(udg_MassGroup)
          • Custom script: call RemoveLocation(udg_Y02)
 

Yoshii

New Member
Reaction score
74
I suggest
test
Trigger:
  • Events
    • Player - Player 1 (Red) types a chat message containing -test as An exact match
    • Conditions
    • Actions
      • Set MYGROUP[(Player number of (Triggering player))] = (Units in (Playable map area) owned by (Triggering player))
      • Unit Group - Pick every unit in MYGROUP[(Player number of (Triggering player))] and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of (Playable map area))

it moved all 10 of my unit
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top