• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

help I need assistance

Status
Not open for further replies.
Level 9
Joined
Aug 15, 2007
Messages
261
can someone help me fix that trigger
  • Fix ME
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
      • Player - Player 7 (Green) Selects a unit
      • Player - Player 8 (Pink) Selects a unit
      • Player - Player 9 (Gray) Selects a unit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Name of (Picked unit)) Equal to Click ME
        • Then - Actions
          • Unit - Order (Picked unit) to Move To (Center of Rect 010 <gen>)
          • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
            • Loop - Actions
              • Unit - Order (Picked unit) to Move To (Center of Rect 010 <gen>)
        • Else - Actions
the idea is when the unit is selected to make it move
10x :infl_thumbs_up:
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
This is what it should look like with aznricepuff's suggestion... I also changed the condition to a unit comparison....

  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Triggering unit) Equal to ClickME
      • Then - Actions
        • Unit - Order (Triggering unit) to Move To (Center of Rect 010 <gen>)
        • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
          • Loop - Actions
            • Unit - Order (Picked unit) to Move To (Center of Rect 010 <gen>)
      • Else - Actions
 
Level 9
Joined
Sep 8, 2004
Messages
633
In my opinion:

  • Actions
    • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Picked unit) Equal to ClickME
          • Then - Actions
            • Unit - Order (Picked unit) to Move To (Center of Rect 010 <gen>)
          • Else - Actions
 
Level 11
Joined
Feb 22, 2006
Messages
752
Angelusz said:
In my opinion:...

That wouldn't work. It would screw up the trigger cuz the way he has it set up he wants to check to see if the unit selected is of type ClickME before moving ALL selected units to center of that rect. Your trigger would make it so that anytime a player selects ANY unit, all selected units of type ClickME (and only those units) would move to center of the rect.
 
Status
Not open for further replies.
Top