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

aly change

Status
Not open for further replies.
Level 13
Joined
Jul 3, 2008
Messages
1,098
i have a map in which when player kills hero of another player they will chnge theyr aly position

for example:
player 1 is in aliance 1
player 7 is in aliance 2
player 1 kills player 7
player 1 should be now in aliance 2
and player 7 should be now in aliance 1

i know that it can be done but i really dont know how(i have done this once before but i forgot how:hohum:)
 
Level 8
Joined
Jul 22, 2008
Messages
331
you have that kind of action in player actions
it goes:
Player - make Player 1 threat player 8 as ally with shared vision
but if you don't wanna use so many funcs pick every player of the one team and then use that action but with picked player except player 1...
 
Level 6
Joined
Aug 13, 2008
Messages
197
event-a unit dies
condition-unit (is owned by player 7)
action-player group (alliance 1) remove (owner of killing unit)
-player group (alliance 2) add (owner of killing unit)
------if it cant work try continuing-----
-make (owner of killing unit) treat (alliance 2) as (ally)
-make (alliance 2) treat (owner of killing unit) as (ally)
-make (alliance 1) treat (owner of killing unit) as (enemy)
-make (owner of killing unit) treat (alliance 1) as (enemy)
 
Status
Not open for further replies.
Top