Hello everyone, I've been experimenting on a new 1on1 Melee map called Talis, and I have made a trigger (Multiple triggers really) to fix the alliance settings on it. What I'm looking for, is that the Xel'Naga Turret works like a Xel'Naga Tower, except while controlled, the turret automatically shoots your enemies. Would this work? I'll give an example.
Tower Properties
Events: Unit - Any Unit enters 1st Tower (Region Name)
Conditions: (Owner of (Triggering Unit)) == 1
Actions: Unit - Change ownership of Xel'Naga Turret [21.01, 51.10] to player 1 and Change Color
Events: Unit - Any Unit leaves 1st Tower (Region Name)
Conditions: (Owner of (Triggering Unit)) == 1
Actions: Unit - Change ownership of Xel'Naga Turret [21.01, 51.10] to player 14 and Change Color
And as for Player 14's alliance with other players to let it work.
TowerAlliance
Events: Game - Map initialization
Actions: Player - Make player 14 and player 1 treat each other as Ally
Actions: Player - Make player 14 and player 2 treat each other as Ally
Same Tower Properties apply to player 2, and same triggers are used for another region with the Xel'Naga Turret in it.
Hello everyone, I've been experimenting on a new 1on1 Melee map called Talis, and I have made a trigger (Multiple triggers really) to fix the alliance settings on it. What I'm looking for, is that the Xel'Naga Turret works like a Xel'Naga Tower, except while controlled, the turret automatically shoots your enemies. Would this work? I'll give an example.
Tower Properties
Events: Unit - Any Unit enters 1st Tower (Region Name) Conditions: (Owner of (Triggering Unit)) == 1 Actions: Unit - Change ownership of Xel'Naga Turret [21.01, 51.10] to player 1 and Change Color
Events: Unit - Any Unit leaves 1st Tower (Region Name) Conditions: (Owner of (Triggering Unit)) == 1 Actions: Unit - Change ownership of Xel'Naga Turret [21.01, 51.10] to player 14 and Change Color
And as for Player 14's alliance with other players to let it work.
TowerAlliance
Events: Game - Map initialization Actions: Player - Make player 14 and player 1 treat each other as Ally Actions: Player - Make player 14 and player 2 treat each other as Ally
Same Tower Properties apply to player 2, and same triggers are used for another region with the Xel'Naga Turret in it.
And by the way, the conditions are in there.
Will this trigger setup work?
It could be done cleaner, but that should work. =3
You'd have a problem because then each time a new unit with a different owner comes in the tower would change ownership.