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

Alliances Help!

Status
Not open for further replies.
Level 3
Joined
Apr 11, 2009
Messages
43
I need some help with GUI alliances.
I have had no problems until now, what I need is that I have my event and conditions, but what I need is that:
The owner of the dying unit and all his/her allies, become allied with the owner of the killing unit and all his/her allies.
The action does not support player groups, except picked player, which I can only have one of at anyone time. Can anyone help me?
 
If not in groups just pick each player. Rather simple, really.
  • Alliances
    • Events
      • Unit - A unit dies
    • Conditions
    • Actions
      • Player - Make (Owner of (Dying Unit)) treat (Owner of (Killing Unit)) as an ally with shared vision
      • Set group = (All players matching ((Matching Player) is an ally of (Owner of (Dying Unit)) equal to true))
      • Player Group - Pick every player in group and do (All Actions)
        • Loop - Actions
          • Player - Make (Picked Player) treat (Owner of (Killing Unit)) as an ally with shared vision
      • Custom script: Call DestroyForce(udg_group)
 
Thankyou and yes I do hate you manstie, you whine if one person leaves a game for a rmk, tking and everything. +Rep to you idodik. This solves my problem.
 
Status
Not open for further replies.
Back
Top