• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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