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

Make alliance with every player within player group

Status
Not open for further replies.
Level 2
Joined
Aug 4, 2010
Messages
23
I have 12 players and i'm randomly choosing 1 player and put him to variable "PlayerEnemy".
Now rest players are grouped into players group called "AllianceGroup".

I want to pick every player in "AllianceGroup" and make them allies with each other and hostile with "PlayerEnemy"

How to do that?
 
Level 5
Joined
Jan 5, 2012
Messages
116
I'm not sure but I think that should do it:


  • Alliance
    • Events
      • Time - Elapsed game time is 0.04 seconds
    • Conditions
    • Actions
      • Player Group - Make AllianceGroup treat AllianceGroup as an Ally with shared vision
      • Player Group - Make AllianceGroup treat PlayerEnemy as an Enemy
 
Level 2
Joined
Aug 4, 2010
Messages
23
Thanks i didn't know that Player Groups have Alliance settings i thought only player functions had.
 
Status
Not open for further replies.
Top