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

Neutral force

Status
Not open for further replies.
Level 24
Joined
Jul 9, 2009
Messages
4,097
How do I make so that when a unit that belongs to P1 (red) for example he joins a neutral force that is allied with all forces (exept Neutrall Hostile) even tho team 1 and team 2 is fighting each outhers?
 
Level 29
Joined
Mar 10, 2009
Messages
5,016
How do I make so that when a unit that belongs to P1 (red) for example he joins a neutral force that is allied with all forces (exept Neutrall Hostile) even tho team 1 and team 2 is fighting each outhers?

something to do with

  • Player - Make Player 1 (Red) treat Player 2 (Blue) as an Neutral
and vice versa, and so on...
 
Level 9
Joined
Jun 25, 2009
Messages
427
  • Actions
  • Player - Make Player 1 (Red) treat Player 2 (Blue) as an Neutral
  • Player - Make Player 2 (Red) treat Player 1 (Blue) as an Neutral
This is what he meant by vice-versa

No, he said that he will treat both sides as allies, not as neutrals.

  • The Trigger
    • Events:
      • Player - Player 1 (Red) types a chat message containing -neutral as An exact match
      • Player - Player 2 (Blue) types a chat message containing -neutral as An exact match
      • Player - Player 3 (Teal) types a chat message containing -neutral as An exact match
      • Player - Player 4 (Purple) types a chat message containing -neutral as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -neutral as An exact match
      • Player - Player 6 (Orange) types a chat message containing -neutral as An exact match
      • Player - Player 7 (Green) types a chat message containing -neutral as An exact match
      • Player - Player 8 (Pink) types a chat message containing -neutral as An exact match
      • Player - Player 9 (Gray) types a chat message containing -neutral as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -neutral as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -neutral as An exact match
      • Player - Player 12 (Brown) types a chat message containing -neutral as An exact match
    • Conditions:
      • Player_Is_Neutral[Player Number of (Triggering Player)] equal to False
    • Actions:
      • Player Group - Pick every player in (All players matching ((Matching player) Not equal to Neutral Hostile)) and do (Actions)
        • Loop - Actions
          • Player - Make (Picked Player) treat (Triggering Player) as Ally with shared vision
          • Player - Make (Triggering Player) treat (Picked Player) as Ally with shared vision
          • Set Player_Is_Neutral[Player Number of (Triggering Player)]=True
This is the way it should BE!

And yeah, if you don't want the vision, you can only write as Ally.

Tiche3
 
Last edited:
Status
Not open for further replies.
Top