chat events need help

millzy

Ultra Cool Member
Reaction score
44
is there a way so that instead of having

Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing -attack as An exact match
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of (Playable map area))


for each player is there a way to do it all in 1 triger???
 

Scary Nachos

Castro flashing Gang Signs!
Reaction score
45
aye its miz! i got dced from bnet by spamming >< stupid... so yeah.. just do w/e you want on my map and then just send it back, just tell me what you did on the email or something and send it back =D thanks :p
 

elmstfreddie

The Finglonger
Reaction score
203
is there a way so that instead of having

Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing -attack as An exact match
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of (Playable map area))


for each player is there a way to do it all in 1 triger???

add the event for every player (in the same trigger), and change
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) and do (Actions)

to
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Matching Unit)) Equal to (Triggering Player))) and do (Actions)

Please note I changed triggering unit to matching unit and player 1 to triggering player... both very important :p
 

Tyrulan

Ultra Cool Member
Reaction score
37
Yup.

Trigger:
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing -attack as An exact match
      • Player - Player 2 (Blue) types a chat message containing -attack as An exact match
      • Player - Player 3 (Teal) types a chat message containing -attack as An exact match
      • Player - Player 4 (Purple) types a chat message containing -attack as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -attack as An exact match
      • Player - Player 6 (Orange) types a chat message containing -attack as An exact match
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Matching unit)) Equal to (Triggering player))) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To (Center of (Playable map area))
 

Scary Nachos

Castro flashing Gang Signs!
Reaction score
45
add the event for every player (in the same trigger), and change
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Triggering unit)) Equal to Player 1 (Red))) and do (Actions)

to
Trigger:
  • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Matching Unit)) Equal to (Triggering Player))) and do (Actions)

Please note I changed triggering unit to matching unit and player 1 to triggering player... both very important :p


On the "triggering player" you would just have to change the "Player 1 (Red)" I dont think it willl work, since player red has to type it. But for other players like blue, you might have to change the "Owner of (Triggering unit)) Equal to Player 2 (Blue) or something like that

Edit: Doh too slow :p
 

millzy

Ultra Cool Member
Reaction score
44
ok this all right leakless/MPI?

Trigger:
  • Mass Attack
    • Events
      • Player - Player 1 (Red) types a chat message containing -attack as An exact match
      • Player - Player 2 (Blue) types a chat message containing -attack as An exact match
      • Player - Player 3 (Teal) types a chat message containing -attack as An exact match
      • Player - Player 4 (Purple) types a chat message containing -attack as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -attack as An exact match
    • Conditions
    • Actions
      • Set Mass_Point = (Center of regen &lt;gen&gt;)
      • Set Mass_group = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in Mass_group and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack-Move To Mass_Point
      • Custom script: call RemoveLocation(udg_Mass_Point[1])
      • Custom script: call DestroyGroup(udg_Mass_group)
 
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