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

Trigger. Turn selected units into Neutral Hostile?

Status
Not open for further replies.
Level 5
Joined
Nov 3, 2007
Messages
113
Yes, it may sounds crazy.
But I need a trigger that once you have selected units with the mouse.
You can type a keyword whitch changes all the selected units into Neutral Hostile..

Can somebody help me? Or make an example in a map?

Cheers.
 
Level 5
Joined
Nov 3, 2007
Messages
113
Okay, first off thanks Maker, + Rep!

However, there is 1 thing still not working.
Now you can turn anybody's units into Neutral Hostile, what do I need to add for it to be so it only changes your units into Neutral Hostile.
 
Level 5
Joined
Nov 3, 2007
Messages
113
I currently have this but it does not work:

10qe0kw.jpg
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 004
    • Events
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • 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
              • (Owner of (Picked unit)) Equal to (Triggering player)
            • Then - Actions
              • Unit - Change ownership of (Picked unit) to Neutral Hostile and Change color
            • Else - Actions
http://www.hiveworkshop.com/forums/miscellaneous-tutorials-456/how-easily-post-triggers-163285/
 
Status
Not open for further replies.
Top