How do I make the Xel Naga Towers change ownership, not just give control.
I need to make the owner of the Xel Naga Tower accumulate points towards an integer variable. There are no triggers (that I'm aware of), that call for the "controller of unit", so I need to use "owner of unit", but I need the xel naga towers to change ownership on capture.
Or I need to find some other way to make them accumulate points towards the player who's captured them.
I've considered that, but triggers like this come with bugs.
I need the only player thats in that region to gain points, and they must have control of the tower. I dont want it so you can fly an observer or some kind of air unit over each tower and accumulate points, you need to actually control the tower first.
You can add extra conditions to root out out unwanted bugs. Put in an attribute check for ground units, so that flyers can't cap it, and a check which locks the region to the owner of the first unit that enters, until he has no units in that region, at which point the region can be captured by other players, just like how the watchtowers work. ;)
Thats alot of conditions to create just to get that one tower (out of 5) to work. 9 players (including neutral), times 5 towers, times a crapload of conditions specific to each player/tower/unit type/only unit in the region..
Gotta be an easier way. I would prefer not having triggers like this slowing down my map and bugging out randomly because the owning unit was killed in the region while another player was there. I would prefer creating some kind of ability or behavior, or actor event that changes ownership like the towercapture ability gives control. I would even rather prefer creating a custom function (if I knew how to) than stringing together a hundred conditions for just 1 unit.
In theory, just saying that it can be done with conditions sounds easy enough, but I've personally made triggers like this for some other things and I know how time consuming it is just to make 1 unit give control to the nearby player, and even then it still bugs out from time to time. Its definately alot more work that it sounds and should be.
Nevermind guys, I created a custom ability that changes ownership instead.
The towers wont revert back to neutral, but still can be captured by other players (they still give control to nearby units).
This is basically what I wanted and works fine for now until I figure out how to make the tower capture ability change ownership through the actor or something.
Xel Naga Towers - Changing Ownership (To generate Integer pts)
How do I make the Xel Naga Towers change ownership, not just give control.
I need to make the owner of the Xel Naga Tower accumulate points towards an integer variable. There are no triggers (that I'm aware of), that call for the "controller of unit", so I need to use "owner of unit", but I need the xel naga towers to change ownership on capture.
Or I need to find some other way to make them accumulate points towards the player who's captured them.
Any help?
Make a region around the tower, and have the player with units in that region gain points.
I've considered that, but triggers like this come with bugs.
I need the only player thats in that region to gain points, and they must have control of the tower. I dont want it so you can fly an observer or some kind of air unit over each tower and accumulate points, you need to actually control the tower first.
You can add extra conditions to root out out unwanted bugs. Put in an attribute check for ground units, so that flyers can't cap it, and a check which locks the region to the owner of the first unit that enters, until he has no units in that region, at which point the region can be captured by other players, just like how the watchtowers work. ;)
@ChromiumBoy:
Thats alot of conditions to create just to get that one tower (out of 5) to work. 9 players (including neutral), times 5 towers, times a crapload of conditions specific to each player/tower/unit type/only unit in the region..
Gotta be an easier way. I would prefer not having triggers like this slowing down my map and bugging out randomly because the owning unit was killed in the region while another player was there. I would prefer creating some kind of ability or behavior, or actor event that changes ownership like the towercapture ability gives control. I would even rather prefer creating a custom function (if I knew how to) than stringing together a hundred conditions for just 1 unit.
In theory, just saying that it can be done with conditions sounds easy enough, but I've personally made triggers like this for some other things and I know how time consuming it is just to make 1 unit give control to the nearby player, and even then it still bugs out from time to time. Its definately alot more work that it sounds and should be.
@KewlCrayon:
Believe in the power of triggers! :P
The alternative to delve into the data editor. Can't help you there though.
Nevermind guys, I created a custom ability that changes ownership instead.
The towers wont revert back to neutral, but still can be captured by other players (they still give control to nearby units).
This is basically what I wanted and works fine for now until I figure out how to make the tower capture ability change ownership through the actor or something.