SC2Mapster Forums

Development > Data

Warpgate cooldown while as Gateway

  • 4 posts
    #1 Jan 25, 2013 at 11:32 UTC - 0 likes

    I have looked thoroughly at WarpGateTrain and other items in the data editor, but I have not found anything that I could change that allows the Warpgate cooldown to continue once it is back in its Gateway form. In particular, I am wanting to have the remaining cooldown on the Warpgate decrease 2-3x slower when in Gateway form, if at all possible. So far, the Warpgate cooldown just freezes when it is out of that form.

    I would like the Warpgate's cooldown to freeze during transformation, decrease several times slower in Gateway form, and decrease normally in Warpgate form. If that is not possible, just having it continue cooldown at normal pace while in Gateway form is fine.

    Is there anyone who has an idea about this? Thanks in advance!

    Last edited Jan 25, 2013 by purakushi
    #2 Jan 25, 2013 at 12:33 UTC - 0 likes

    See if changing that Cost - Cooldown Location property on the ability does anything, maybe changing it from Unit to Ability, if it's not set to Ability already.

    For this to work you might need to add the Warp Gate Train ability to the Gateway as well, it shouldn't be usable if there aren't buttons for it, so it should be ok.

    Last edited Jan 25, 2013 by zorbotron

    Cyber Jorts

    #3 Jan 26, 2013 at 04:41 UTC - 0 likes

    @zorbotron: Go

    I put the WarpGateTrain ability on the Gateway, and it works as you think it would. However, if I push W, it still selects all of the Gateways. Is there any way to change that? I want W to only select Warpgates (instead of all units that have the WarpGateTrain ability) and the cooldown to still decrease while in Gateway form. I think the W is hardcoded into the WarpGateTrain ability but is there any other way to do this?

    Is it possible to link the cooldown to something in addition to WarpGateTrain? That way I can put this something else on the Gateway, and it will not affect the normal Warpgate operation. It can be a dummy ability or something.

    Thanks.

    EDIT: Hm, is there a way to grab the current cooldown of an ability via triggers? I think I have a solution for what I want to do. I will post my findings here, but the answer to that question will help me a lot.

    Last edited Jan 26, 2013 by purakushi
    #4 Jan 29, 2013 at 04:58 UTC - 0 likes

    Got it. I ended up just making a trigger to count how long it stays as a gateway and modify the warpgatetrain ability accordingly. I used the number of abilities == 3 to check when it changes back to a warpgate (gateway has 5).

  • 4 posts

You must login to post a comment. Don't have an account? Register to get one!