![]() |
#1 |
User
Join Date: Jul 2007
Posts: 149
![]() |
![]() in my map i have a star gate which i want to require a DHD to work. the DHD uses a buff called DHD power but it is not working properly. how can i get the buff to make the stargate activate when the DHD is present but go inert when it is absent?
|
![]() |
![]() |
Sponsored Links - Login to hide this ad! |
|
![]() |
#2 |
Procrastination Incarnate
Development Director
|
![]() Is DHD power given by an aura? Did you set up the aura so that it can target structures? What kind of triggers do you have checking for the buff, can you post them?
__________________ |
![]() |
![]() |
![]() |
#3 |
User
Join Date: Jul 2007
Posts: 149
![]() |
![]() yes, it is provided by an aura. it does target the stargate. here is the trigger:
Trigger: ![]() Last edited by Anitarf : 05-17-2018 at 08:15 PM. |
![]() |
![]() |
![]() |
#4 |
Procrastination Incarnate
Development Director
|
![]() The disabled condition should be removed altogether, it is not relevant and will only cause the trigger to fail if you enable it.
__________________The error that I see is that you use "(Owner of (Ordered unit))". "(Ordered unit)" is an event response that can only be used in triggers with an order event. You should use a different method of picking the new owner. Also, make sure your power aura can also target neutral units or you will never be able to power a Stargate again once it becomes unpowered. Edit: I've edited your post and put the trigger in [trigger] tags, that way it is easier to read. Last edited by Anitarf : 05-17-2018 at 08:15 PM. |
![]() |
![]() |
![]() |
#5 |
User
Join Date: Jul 2007
Posts: 149
![]() |
![]() i tried casting unit as well and that did not work. instead of editing my post you should instead send me a pm and inform me how i can format the trigger. you scared my away now by being rude.
|
![]() |
![]() |
![]() |
#6 |
default string
|
![]() Where was Ani rude at all?
Anyway, I don't think you are able to get the owner of the aura without triggering the whole thing (good luck in gui). I assume you're trying to create a pylon type power thing (if wrong, ignore but ideally actually state what you're trying to do when you post a problem). Instead of changing owners when a building gets unpowered I would just disable/pause it. That way don't have to figure out who owns the power aura, you just have to re-enable/unpause. Last edited by Fledermaus : 05-18-2018 at 06:52 AM. |
![]() |
![]() |
![]() |
#7 |
Procrastination Incarnate
Development Director
|
![]() I was trying to be helpful with the edit, doing this has never been an issue before.
__________________As Fledermaus said, if you want any player to be able to take control of an unpowered building by powering it, this will be more difficult to achieve because there is no way to get the source of an aura buff with triggers. When a building becomes powered, you could do a search for an aura source in a radius around the building, but what if you find more than one source (for example, if two players completed a power source within the last 2 seconds)? No way to tell who was first. It becomes even more difficult if the power sources are mobile, it's not clear from your posts if they are or not. As noted, a different implementation where buildings can't change owners would be easier to implement, would that be acceptable? |
![]() |
![]() |
![]() |
#8 |
User
Join Date: Dec 2018
Posts: 1
![]() |
![]() Just came across this thread. Nice! Thanks for the tips!
|
![]() |
![]() |
![]() |
#9 |
User
Join Date: Jul 2007
Posts: 149
![]() |
![]() the building can not change owner once it is tied to a DHD. if however the DHD gets destroyed, then the building needs to be able to connect to another DHD. this website is my only hope because i was banned from the hive workshop for no reason. i was not even there.
|
![]() |
![]() |
![]() |
#10 |
Procrastination Incarnate
Development Director
|
![]() If that's the case, I would approach this problem differently. Instead of using a trigger to periodically check for an aura buff, I would use a trigger that runs when a DHD building finishes construction. When that trigger runs, check around the newly constructed building for any stargates and power them. Then, have another trigger that runs when a DHD building is destroyed, when that happens look again for any nearby stargates and unpower them.
__________________ |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
|