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

[Snippet] PlayerAlliance

You could cut your library length almost in half if you added a function:

JASS:
function PairAlliance takes player p, player p2, alliancetype a, boolean flag returns nothing
    call SetPlayerAlliance(p, p2, a, flag)
    call SetPlayerAlliance(p2, p, a, flag)
endfunction

Yes it's slower but this function doesn't care about efficiency on a grand scale.

I also recommend implementing the cool feature where you have access to allied hero icons on the top left to heal them and such, but don't have access to control them. I think it requires turning on ADVANCED_SHARED_UNITS and then turning on SHARED_VISION.
 
Last edited:
Top