• 🏆 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!

How to i set over 1 Player to Action

Status
Not open for further replies.
Level 6
Joined
Mar 9, 2009
Messages
175
FOr example : order player 7 and 8 unit to attack move only....not include's other player unit
 

Vunjo

Hosted Project: SC
Level 14
Joined
Jul 1, 2010
Messages
1,340
[trigger=My Trigger]MyTrigger
Actions
Unit Group - Pick every unit in (Units in Your Region From Where To Pick Units <gen> owned by Player 7 (Green)) and do (Actions)
Loop - Actions
Unit - Order (Picked unit to Attack-Move To (Center of Your Region Where Creeps Will Attack Move <gen>)[/trigger]
 

Vunjo

Hosted Project: SC
Level 14
Joined
Jul 1, 2010
Messages
1,340
If that doesn't work try this
[trigger=My Trigger]MyTrigger
Actions
Unit Group - Pick every unit in (Units in Your Region From Where To Pick Units <gen>)and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
(Owner of (Picked unit)) Equal to Player 7 (Green)
(Owner of (Picked unit)) Equal to Player 8 (Pink)
Then - Actions
Unit - Order (Picked unit to Attack-Move To (Center of Your Region Where Creeps Will Attack Move <gen>)
Else - Actions
Do nothing[/trigger]

Use 1 of these triggers
In first one, you can copy paste trigger, and change Player 7 to Player 8 to make for other players.
 
Level 6
Joined
Mar 9, 2009
Messages
175
ok thank ^.^




Updated**
but seems bit bugged...
i need picked player 7 and player 8(or more than) unit to move attack
 
Last edited:
Level 11
Joined
Aug 6, 2009
Messages
697
Here.

  • Actions
    • Unit Group - Add all units of (Units in (Playable map area) owned by Player 7 (Green)) to YourUnitGroup
    • Unit Group - Add all units of (Units in (Playable map area) owned by Player 8 (Pink)) to YourUnitGroup
    • Set YourPoint = (Center of Region 000 <gen>) //Point Variable
    • Unit Group - Pick every unit in YourUnitGroup and do (Actions)
      • Loop - Actions
        • Unit - Order (Picked unit) to Attack-Move To YourPoint
    • Custom script: call RemoveLocation (udg_YourPoint)
 
Status
Not open for further replies.
Top