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

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,240
  • 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