• 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.

Condition help plz

Status
Not open for further replies.
Level 1
Joined
Aug 27, 2009
Messages
2
i cant seem to make my trigger to only apply to a certian color.. is there a quick condition that i can add?

untitled.jpg


but it obliviously moves any unit in the region at that time..
 
  • North 11
  • Events
    • Unit - A unit enters North 1 1 <gen>
  • Conditions
    • (Owner of (Triggering unit)) Equal to Player 6 (Orane)
  • Actions
    • Set Temp_Group = (Units in North 1 1 <gen> matching (((Owner of (Matching unit)) Equal to Player 6 (Orange))
    • Set AttackPoint = (Center of Attack East <gen>)
    • Unit Group - Pick every unit in Temp_Group and do (Actions)
      • Loop - Actions
        • Unit - Order (Picked unit) to Attack-Move to (AttackPoint)
    • Custom script: call DestroyGroup (udg_Temp_Group)
    • Custom script: call RemoveLocation (udg_AttackPoint)
 
If you want the triggering unit to be the only one to move then you can just change the action to this:

Unit-Order Tiggering Unit to Attack-Move to X

Changing your action to that will result in ordering only units owned by the player in the condition to move when it enters the region... Is this for a TD map or AoS? That action above is the one I use for those kind of movement triggers....

one more... your trigger has leaks....
 
Status
Not open for further replies.
Top