We know that we can link two ability cooldowns with the field "Set ID" on an Ability object. But that only works if these two abilities are enabled on the same unit. Fortunately, that's not all !
Let's take an example :
- 2 units of type A
- 1 unit of type B
- Units A possess Abil1 and Abil2.
- Unit B possesses Abil1 only.
If you select them 3, units A highlighted, and execute Abil1 : Abil1 is in cooldown for both units A but not unit B.
If you select them 3, unit B highlighted, and execute Abil1 : Abil1 is in cooldown for unit B only.
If you select them 3, units A highlighted, and execute Abil2 : Abil2 is in cooldown for both units A.
At this point, everything behaves as expected, and as a standard SC2 game.
How to link cooldowns of Abil1 and Abil2 :
1) Set an ID. Look for the field "Set ID" and set the same for both abilities. This results in sharing the cooldown (Yes, it is weird, that seems to be a legacy mechanic from Warcraft 3).
2) Look for the field "Cost +" for your Ability object (Ex : Abil2).
3) Change the ability link for "Charge" and / or "Recharge". (Ex : Abil/Abil2 becomes Abil/Abil1).
4) Change the location from "Ability" to "Unit". This is an important change ! Changing only the link is not enough :
> Location is "Ability" : This results in 2 abilities sharing the same link, this means both abilities shares the same parameters of charge and / or recharge but it doesn't mean the same cooldown.
In our example : You can click twice on Abil1 to : Consume 1 charge of Abil1, click again even if it's on recharge to look for a link shared with Abil1 (which is the case for Abil2) and consume 1 charge of Abil2.
> Location is "Unit" : Same thing than "Ability" location but it will consume 1 charge of the expected link for all abilities sharing it.
In our example : That causes the recharge on both abilities.
5) Make sure the ability has flag "Best Unit" unchecked!
> Best Unit is "checked" : Consume the ability for 1 unit (the best unit) in the selected unit group.
> Best Unit is "unchecked" : Consume the ability for all units in the selected unit group.
At this point :
- Your 2 units A can employ Abil1 separately or execute it simultaneously, depending on your selected unit group (= you pick each or both of them).
- Your 2 units A can employ Abil2 but Abil1 is also in cooldown. And vice versa.
Now, let's try to link Abil2 to Abil1 (which is done) through 2 unit types.
If you followed the explanation, you may have guessed how to do that. Let's change the location !
6)Location can take 5 values : Ability, Unit, Behavior, Player and Global. Set the location to "Player".
> Location is "Behavior" : Same behavior (haha) as "Ability" but for behaviors. Obviously, it doesn't work for ability objects. And "Ability" doesn't work for behavior objects.
> Location is "Player" : This spreads the query to everything (not only units) sharing the link for the casting player. And this whether your unit selection !
> Location is "Global" : This is not recommended as it does the same as "Player" but for all players.
At this point :
- Any unit using Abil1 or Abil2 will set the cooldown on Abil1 and Abil2 for all other units.
Hello,
unit A has an ability, unit B has another ability. When one of the units use their ability, I want the cooldown to be activated on the other ability.
https://nox.tips/
So as soon as one unit uses its ability, the cooldown is activated on the other one.
https://xender.vip/
Any idea how to make this?
Hello,
We know that we can link two ability cooldowns with the field "Set ID" on an Ability object. But that only works if these two abilities are enabled on the same unit. Fortunately, that's not all !
Let's take an example :
- 2 units of type A
- 1 unit of type B
- Units A possess Abil1 and Abil2.
- Unit B possesses Abil1 only.
If you select them 3, units A highlighted, and execute Abil1 : Abil1 is in cooldown for both units A but not unit B.
If you select them 3, unit B highlighted, and execute Abil1 : Abil1 is in cooldown for unit B only.
If you select them 3, units A highlighted, and execute Abil2 : Abil2 is in cooldown for both units A.
At this point, everything behaves as expected, and as a standard SC2 game.
How to link cooldowns of Abil1 and Abil2 :
1) Set an ID. Look for the field "Set ID" and set the same for both abilities. This results in sharing the cooldown (Yes, it is weird, that seems to be a legacy mechanic from Warcraft 3).
2) Look for the field "Cost +" for your Ability object (Ex : Abil2).
3) Change the ability link for "Charge" and / or "Recharge". (Ex : Abil/Abil2 becomes Abil/Abil1).
4) Change the location from "Ability" to "Unit". This is an important change ! Changing only the link is not enough :
5) Make sure the ability has flag "Best Unit" unchecked !
At this point :
- Your 2 units A can employ Abil1 separately or execute it simultaneously, depending on your selected unit group (= you pick each or both of them).
- Your 2 units A can employ Abil2 but Abil1 is also in cooldown. And vice versa.
Now, let's try to link Abil2 to Abil1 (which is done) through 2 unit types.
If you followed the explanation, you may have guessed how to do that. Let's change the location !
6) Location can take 5 values : Ability, Unit, Behavior, Player and Global. Set the location to "Player".
At this point :
- Any unit using Abil1 or Abil2 will set the cooldown on Abil1 and Abil2 for all other units.
- This happens for abilities with the same ID.
And you're done. Hope this text is clear !
Have a nice day !