- Joined
- Jan 9, 2006
- Messages
- 54
Im trying to make the trigger like the one in Empires v1.2. the effect of the trigger is that when a building reaches 30% life, the building is allied and changes color to the attacking player. heres the problem: i got it so the building gets allied, however if the building is attacked by a dif player and is then allied to that new person, the converted person doesnt atk old allies. sumtimes the attacked player atks himself over and over again. IM SO FRUSTRATED! ive tried contacting the creator of this map but no reply. heres wat i got:
PlayerConqueroring
Events
Unit - A unit Is attacked
Conditions
(Life of (Triggering unit)) Less than or equal to 1750.00
(Unit-type of (Triggering unit)) Equal to Republic Base of Operations
Actions
Unit - Order (Attacking unit) to Stop
Unit - Set life of (Triggering unit) to 100.00%
Player - Make (Owner of (Triggering unit)) treat (Owner of (Attacking unit)) as an Ally with shared vision
Player - Make (Owner of (Attacking unit)) treat (Owner of (Triggering unit)) as an Ally with shared vision
Player Group - Pick every player in (All allies of (Owner of (Attacking unit))) and do (Player - Make (Picked player) treat (Owner of (Triggering unit)) as an Ally with shared vision)
Player Group - Make (All players matching (((Owner of (Triggering unit)) is in (All allies of (Owner of (Triggering unit)))) Equal to True)) treat (All allies of (Owner of (Attacking unit))) as an Ally with shared vision
Player Group - Make (All players matching (((Owner of (Triggering unit)) is in (All allies of (Owner of (Triggering unit)))) Equal to True)) treat (All enemies of (Owner of (Attacking unit))) as an Enemy
Player - Change color of (Owner of (Triggering unit)) to (Color of (Owner of (Attacking unit))), Changing color of existing units
Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + |cffff0000 has been conqueored!!|r)
Please sum1 help me! this is wat i have left of my game and then it'll be done!
PlayerConqueroring
Events
Unit - A unit Is attacked
Conditions
(Life of (Triggering unit)) Less than or equal to 1750.00
(Unit-type of (Triggering unit)) Equal to Republic Base of Operations
Actions
Unit - Order (Attacking unit) to Stop
Unit - Set life of (Triggering unit) to 100.00%
Player - Make (Owner of (Triggering unit)) treat (Owner of (Attacking unit)) as an Ally with shared vision
Player - Make (Owner of (Attacking unit)) treat (Owner of (Triggering unit)) as an Ally with shared vision
Player Group - Pick every player in (All allies of (Owner of (Attacking unit))) and do (Player - Make (Picked player) treat (Owner of (Triggering unit)) as an Ally with shared vision)
Player Group - Make (All players matching (((Owner of (Triggering unit)) is in (All allies of (Owner of (Triggering unit)))) Equal to True)) treat (All allies of (Owner of (Attacking unit))) as an Ally with shared vision
Player Group - Make (All players matching (((Owner of (Triggering unit)) is in (All allies of (Owner of (Triggering unit)))) Equal to True)) treat (All enemies of (Owner of (Attacking unit))) as an Enemy
Player - Change color of (Owner of (Triggering unit)) to (Color of (Owner of (Attacking unit))), Changing color of existing units
Game - Display to (All players) the text: ((Name of (Owner of (Triggering unit))) + |cffff0000 has been conqueored!!|r)
Please sum1 help me! this is wat i have left of my game and then it'll be done!