SC2Mapster Forums

Development > Data

Cooldown start AFTER ability end

  • 13 posts
    #1 May 26, 2011 at 18:39 UTC - 0 likes

    Hi, I'm using the cloak ability, but i want to add a cooldown when a player decloaks (as opposed to setting the cooldown duration from ability cast).

    let me know if you need more info - thanks.

    #2 May 26, 2011 at 18:57 UTC - 0 likes

    find your cloak ability : in the cost+ - find the COOL DOWN section - where it says : TIME USED - set that to 0

    find the De-cloak ability: cost+ - Find the COO DOWN section - where it says TIME USED ( i think) - add the amount of time he needs to wait to de-cloak.

    if that's what you mean. try the different fields in the COOL DOWN section to see witch one better fit your needs.

    Last edited May 26, 2011 by Selfcreation
    #3 May 26, 2011 at 19:25 UTC - 0 likes
    Quote from Selfcreation: Go

    find your cloak ability : in the cost+ - find the COOL DOWN section - where it says : TIME USED - set that to 0

    find the De-cloak ability: cost+ - Find the COO DOWN section - where it says TIME USED ( i think) - add the amount of time he needs to wait to de-cloak.

    if that's what you mean. try the different fields in the COOL DOWN section to see witch one better fit your needs.

    i don't use an ability for de-cloak - its just an ability-> behavior that toggles on and off.. but if thats the best way to do it, then ill change the ability.

    cheers for the reply

    #4 May 26, 2011 at 19:29 UTC - 0 likes
    Quote from aFlyingchicken: Go

    @Selfcreation: Go

    i don't use an ability for de-cloak - its just an ability-> behavior that toggles on and off.. but if thats the best way to do it, then ill change the ability.

    cheers for the reply

    It should at least work, if you use 2 abilities (I think). Just make sure they use the same cooldown link, and the cooldown location should be unit, not ability.

    I don't know, how to make the usual toggle behavior abilities behave like you want, maybe its possible as well.

    http://img577.imageshack.us/img577/4226/blaj.jpg

    #5 May 26, 2011 at 20:10 UTC - 0 likes

    You need 2 abilities.

    One Cloak, applies behaviour. One Decloak, removes behaviour.

    Decloak has your desired cooldown.

    Make a requirement for Cloak. Under "Shown", place an equals [your behaviour] constant 0.

    Make sure Cloak is above Decloak on your unit UI.

    #6 May 27, 2011 at 06:06 UTC - 0 likes

    cheers guys - i appreciate the help.

    i was thinking about creating a dummy ability that fired on behavior removal with a linked cooldown as my alternative lol

    #7 May 27, 2011 at 11:18 UTC - 0 likes

    Just give your unit a behaviour that cloaks it and make your Behavior ability apply a buff that disables the cloaking behaviour using the Behavior - Modification - Behaviors Disabled field and has the Toggled On flag enabled.

    The end result will be a unit that initially will be uncloaked but will have cooldown when decloaking.

    #8 May 27, 2011 at 17:02 UTC - 0 likes
    Quote from DrSuperEvil: Go

    Just give your unit a behaviour that cloaks it and make your Behavior ability apply a buff that disables the cloaking behaviour using the Behavior - Modification - Behaviors Disabled field and has the Toggled On flag enabled.

    The end result will be a unit that initially will be uncloaked but will have cooldown when decloaking.

    just to make sure i understood this - i should end up with 2 behaviors for this one abil, right?

    #9 May 27, 2011 at 17:15 UTC - 0 likes

    1 billity type - Behaviour

    1 Behaviour type - BUFF

    in the BUFF behaviour :

    find the Modification + ; in the BEHAVIOUR TAB find flags , and ENABLE cloak ,

    in the ability - find the FLAGS , hit Toggle ( on, off ) also i would trensit ( allows to use the ability while runing/attacking ect. and not stoping him to cast)

    NOW: make 2 buttons : cloak ON , cloak OFF

    your Hero: fidn the ability + field , add your cloack ability type - behaviour

    command card + ad both buttons , ( you should be able to chose ON , OFF ) add them to the Commandcard ( over lap them so it doesnt take more then 1 spot )

    second way you can do it is:

    2 abilitys

    2 effects

    1behaviour (might need 2 not sure )

    2button

    Ability type - Effect instant : here your gona wana add the effect type - APPLY BEHAVIOUR ) witch will apply your CLOAK

    ability type - efefct instant : here your gona wana add a Effect type - Remove Behaviour witch will take off your cloack behaviour

    againa add both abilities to your hereo`s ability+ and the same thing for command card add the 2 buttons .

    PS dont forget the COST+ section of your ability to set the cooldown.

    Last edited May 27, 2011 by Selfcreation
    #10 May 27, 2011 at 20:04 UTC - 0 likes

    Yes the first behaviour is a passive that your unit has on by default and the second behaviour is applied by your ability which disables the first.

    #11 May 28, 2011 at 09:24 UTC - 0 likes

    last question(s) on this

    how do i link the cooldown from the decloak ability to the cloak button? what i mean by this is that when i press the "decloak" button, the cooldown is triggered fine, however the button switches from decloak to cloak and i can press the cloak button again.. (ill post a video if that doesnt make sense)

    my other question is - how do i make it so the unit is charged an initial 10 energy to be cloaked? if i set the cost to 10 energy, the energy is deducted when i hit decloak (obviously).

    thanks for all the help - it took me a while to get my head around this backwards ability lol

    #12 May 28, 2011 at 16:10 UTC - 0 likes

    Using my method just make the cloak buff have an initial effect that deducts 10 energy and has a validator that the unit has greater than 10 energy if it does not already have the buff active.

    #13 Dec 23, 2012 at 19:40 UTC - 0 likes

    @aFlyingchicken: Go

    Just a heads up, been trying to do this as well and got the same results as you, but I then went into the "use cloak" and just added a 1 second cooldown to it. Apparently, if the cooldown is set to 0, it won't bother linking it to begin with, even if your decloak uses the same cd link and has a cooldown. So now I activate cloak, wait 1 second, then activate decloak, and the decloak applies the 20 second cooldown to the cloak ability

  • 13 posts

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