Page 1 of 1

Passive cooldown

Posted: Wed Jul 09, 2008 4:52 am
by Deschain
How do you make passives with a cooldown (like Ressurection or Tristan's Path of Shadows) and how would one trigger them to cooldown and detect if they had cooled down?

Re: Passive cooldown

Posted: Wed Jul 09, 2008 7:12 am
by assassingao
Resurrection can have it's cooldown set in the object editor...

Tristan's path of shadows...in the other hand. I think that Dusk uses a passive skill as a passive dummy ability, then when someone ordered something, the dummy ability is removed and it's replaced with the active dummy skill as ability.

Then the active dummy skill is used, thus the cooldown starts, along with a timer.

When the timer ends, the active dummy skill is removed, and the passive dummy skill is added once again.

Re: Passive cooldown

Posted: Wed Jul 09, 2008 4:00 pm
by Hydrolisk
Dusk also said something about how cooldown was hard to find exactly, so it might recharge earlier or later than what you would expect normally.

Re: Passive cooldown

Posted: Wed Jul 09, 2008 6:44 pm
by Rising_Dusk
Cooldown in WC3 is a biscuit. You think 8 seconds would mean 8 seconds, but it doesn't for whatever reason. And yes, it uses a cycle of three abilities to make PoS work. It's really tricky and I'm not particularly motivated to explain the whole thing right now, but settle in knowing that it is done as follows:
  • Learn dummy ability, add dummy passive
  • Trigger on whatever event, turn off intercept trigger, remove dummy passive, add dummy cooldown ability
  • Track cooldown
  • When cooldown ends, remove dummy cooldown ability, add dummy passive,turn back on intercept trigger

Re: Passive cooldown

Posted: Wed Jul 09, 2008 9:09 pm
by Mundaine
that's funny, I've always used timers to track the cooldown on effects and it's never bugged out. I usually set it to about 0.01 to 0.1 less than the actual cooldown to make sure you can't recast the dummy cooldown effect. BTW what ability do you use for the dummy cooldown. All of the one's I tried stop the unit's current actions if you order them to cast the dummy effect. The only thing that worked for me was a dummy spell shield that gets triggered by a dummy casting unit.

Re: Passive cooldown

Posted: Thu Jul 10, 2008 12:57 am
by Rising_Dusk
It was being very unreliable in my testing, but it may have been a flawed test. Either way, I found a better method so whatever. Also, all dummy spells cause the unit to forget its orders, there is no way around that.

Re: Passive cooldown

Posted: Thu Jul 10, 2008 2:25 am
by Mundaine
I guess I'll have to stay with using a dummy spell shield, since it activates passively...

Re: Passive cooldown

Posted: Thu Jul 10, 2008 2:52 am
by Rising_Dusk
I use berserk and just restore the unit's order, but you can do what you want.

Re: Passive cooldown

Posted: Thu Jul 10, 2008 8:58 pm
by Mundaine
Thing is I don't know how to store the order they had so it's the only good way I have for now :/.

Re: Passive cooldown

Posted: Sun Jul 20, 2008 2:28 pm
by Greenspawn
Use Fan of Knives as a base. It restores the unit order after activation.

Re: Passive cooldown

Posted: Fri Aug 01, 2008 12:25 am
by Rising_Dusk
Not when ordered via triggers -- You'll always lose orders that way. The obvious solution is to just reissue the order, though, I don't see the trouble in the first place.

Re: Passive cooldown

Posted: Sat Aug 02, 2008 8:26 pm
by Greenspawn
Hot damn. Blizzard doesn't think far ahead, does it?

Re: Passive cooldown

Posted: Sun Sep 07, 2008 10:04 am
by Here-b-Trollz
Rising_Dusk wrote:Not when ordered via triggers -- You'll always lose orders that way. The obvious solution is to just reissue the order, though, I don't see the trouble in the first place.
UI-Key + berserk. It's not a TERRIBLE thing if the passive only works while selected.

Re: Passive cooldown

Posted: Sun Sep 07, 2008 10:26 am
by Rising_Dusk
That's debatable, but I guess you could do it that way if it fit your fancy.