I want the player that holds a Xel'Naga tower to gain ressources. For that reason I already create the Xel'Naga tower in a trigger and store it in a global variable. I thought I could just use the condition "Owner of Unit", but anyone holding the tower does not become the owner. Is there an action/trigger/event I miss?
I like the fact, that it won't grand the money, if there are hostile units around the tower. I could start doing all this using a region. But I thought it'd be nice to use the already available Xel'Naga tower :)
Im pretty sure xel nagas stay active based on the closest unit, could be wrong, i haven't experimented with them alot. But yeah, can just use a region, realistically speaking tho, any ground only units within 1 of a tower that are enemy's, will only be around for one, maybe 2 tics at 5 second intervals, one side will be dead fairly quick. Of course your map that may not be true, but its up to you either way :)
may want to do some searches on this forum for DoW and CoH, someone was making a capture point style map based on those 2 games and he may have some insights if you send him/her a PM.
I think they're inactive if two players are inside its region.
Well, the following trigger seems to work. But I think it is a really messy trigger and I'd like to avoid that. So if either anyone can help me make the trigger cleaner or anyone knows a solution to use just the Xel'Naga I would much appreciate it. Thanks!
Take a look at the tower capture ability, you could give the xel naga a second custom ability, with the same target filters etc, which instead of granting sight, would give minerals, put this on a cooldown of the periodic effect, wouldn't even need a trigger at that point.
Sorry, i suppose i was a bit misleading when i said doesn't need a trigger at all, the trigger would just be a Any unit uses any ability, condition would be if ability used = custom xel naga ability, then get the targeted unit and give his owner X minerals. The xel nagas ability would do nothing besides target a unit.
Hi,
I want the player that holds a Xel'Naga tower to gain ressources. For that reason I already create the Xel'Naga tower in a trigger and store it in a global variable. I thought I could just use the condition "Owner of Unit", but anyone holding the tower does not become the owner. Is there an action/trigger/event I miss?
This does not work :(
Thx in advance!
@kioSkSC2: Go
Why not just grab the closest ground unit within X of the tower, find its owner, then give the dosh?
I like the fact, that it won't grand the money, if there are hostile units around the tower. I could start doing all this using a region. But I thought it'd be nice to use the already available Xel'Naga tower :)
@kioSkSC2: Go
Im pretty sure xel nagas stay active based on the closest unit, could be wrong, i haven't experimented with them alot. But yeah, can just use a region, realistically speaking tho, any ground only units within 1 of a tower that are enemy's, will only be around for one, maybe 2 tics at 5 second intervals, one side will be dead fairly quick. Of course your map that may not be true, but its up to you either way :)
may want to do some searches on this forum for DoW and CoH, someone was making a capture point style map based on those 2 games and he may have some insights if you send him/her a PM.
I think they're inactive if two players are inside its region. Well, the following trigger seems to work. But I think it is a really messy trigger and I'd like to avoid that. So if either anyone can help me make the trigger cleaner or anyone knows a solution to use just the Xel'Naga I would much appreciate it. Thanks!
/Edit: Ooops, like that:
@kioSkSC2: Go
Take a look at the tower capture ability, you could give the xel naga a second custom ability, with the same target filters etc, which instead of granting sight, would give minerals, put this on a cooldown of the periodic effect, wouldn't even need a trigger at that point.
I don't think it is possible to change it to "give minerals". To "grant sight" is one of only a few checkable options in a list. Or am I wrong?
@kioSkSC2: Go
Sorry, i suppose i was a bit misleading when i said doesn't need a trigger at all, the trigger would just be a Any unit uses any ability, condition would be if ability used = custom xel naga ability, then get the targeted unit and give his owner X minerals. The xel nagas ability would do nothing besides target a unit.
Ah cool, definitely going to check that out. Thanks!