• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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.
 
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.
 
I currently have this but it does not work:

10qe0kw.jpg
 
  • 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
https://www.hiveworkshop.com/forums/miscellaneous-tutorials-456/how-easily-post-triggers-163285/
 
Status
Not open for further replies.
Back
Top