• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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?
 
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