HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dummy Ability with Cooldown.

09-24-2007, 01:43 AM#1
StRoNgFoE_2000
What I'm trying to do is, have an ability auto cast whenever a unit attacks, but the ability itself cannot be clicked on. But when the caster attacks, it shows a cooldown on the ability.

The only example I can think of is in DotA, the nerubian weavers "Gemeni Attack". When he attacks, he does a second attack, but the ability has a cooldown but cannot actually be clicked on.

I want a unit to have a long cooldown on attack, but instant kill on attack. I have it all setup except the dummy ability icon. How do I accomplish this?
09-24-2007, 03:06 AM#2
Pheonix-IV
the Weaver uses the Orb of Lightning (New) ability with a Cold Arrows ability. The Cold Arrows show the actual icon and cooldown.

It was discovered that if you use Orb of Lightning to add Cold Arrows (i think it works with other Arrow spells too) to a unit that doesn't actually have that spell, instead of firing the Cold Arrow, it just attacks twice.
09-24-2007, 03:59 AM#3
StRoNgFoE_2000
Sounds good, the effect I want is the icon cooldown so how would I go about this? Do I give the unit both abilities and it will work as intended? I want it to show the cooldown but I don't want the icon to be clickable.
09-24-2007, 08:23 AM#4
Pheonix-IV
you give the Cold Arrows spell the cooldown you want and give the unit the modified Orb of Lightning spell. WCIII will display the cooldown by itself.
09-24-2007, 10:34 AM#5
StRoNgFoE_2000
I dunno what I'm doing wrong but I can't get it to work right...Here is what I did.

- I added the cold arrows buff to orb of lightning.
- Gave cold arrows a cooldown.
- Gave the unit the orb of lightning ability, and tested.

The icon shows up, but it's grayed out. When my unit attacks it doesn't attack twice nor does the icon show any sort of cooldown. Can you give exact directions because I've tried everything here.

Edit: Well I kinda got it to work... The icon is still grayed out, but it shows cooldown sometimes, only grayed out. Everytime I target a different unit the tooltip changes to different things like.. z3:?, D, 1>k=a=, DHEKE!, etc... Help!
09-24-2007, 10:54 AM#6
Pheonix-IV
I uploaded a map that has it all set up.

Two things to note:

First, the icon will always be the disabled version. There's nothing you can do about it. You can import in a fake disabled version of the icon that isn't grayed out if you really want to, or you can just live with it.

Second, the effect will only fire on an ordered attack, if the unit is just sitting there and an enemy is nearby so it attacks by itself, the effect won't work. This is hardcoded into the blizzard engine and there's nothing you can do about it.
Attached Files
File type: w3xDualStrike.w3x (16.8 KB)
09-24-2007, 10:55 AM#7
StRoNgFoE_2000
Thank you I'll give it a shot.
09-24-2007, 11:28 AM#8
StRoNgFoE_2000
Thanks a lot that map helped me. I used your idea of importing a custom icon with the BTN being also the DISBTN and worked. Thnx a bunch.