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

Guards...guard?

Status
Not open for further replies.
Level 4
Joined
Apr 15, 2008
Messages
82
I was wondering if someone could tell me how to make a computer player unally a player when that player attacked another player, making a city guard attack units owned by the player attacking. E.g. Red attacks blue, Brown unallies Red.
 
Level 12
Joined
Mar 16, 2006
Messages
992
I was wondering if someone could tell me how to make a computer player unally a player when that player attacked another player, making a city guard attack units owned by the player attacking. E.g. Red attacks blue, Brown unallies Red.


Player - Set Alliance with player

gogogo
 
Level 4
Joined
Apr 15, 2008
Messages
82
Yes, I am quite aware of that, but I guess I didn't explain well enough. I meant that if you attacked a player within a distance of a unit controlled by a player. And please don't say the name of an action, event, or condition, go through the whole trigger so I don't ask again. Sorry for the inclarity (isthataword?)
 
Level 14
Joined
Aug 25, 2005
Messages
1,133
Attack
Events
Unit - A unit Is attacked
Conditions
(Owner of (Attacking unit)) Not equal to Player 12 (Brown)
((Owner of (Attacking unit)) controller) Not equal to Computer
Actions
Player - Make Player 12 (Brown) treat (Owner of (Attacking unit)) as an Enemy


I'm, busy atm i'll have to give you a step by step thing later.
 
Status
Not open for further replies.
Top