HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Double attacks?

12-30-2009, 06:58 AM#1
[Ð]
I've been wondering for a while now, is there a way to make a unit like, say... The Mountain King do to attacks at once? Like when you order him to attack a unit, he attacks with Attack -1 and then Attack - 2, in two seperate swings before waiting out the cooldown before the next attack?

I could use this in atleast 70% of my projects, past and future, and it would be greatly appreciated.
12-30-2009, 08:35 AM#2
DioD
test it and post results.
12-30-2009, 08:56 AM#3
[Ð]
I'm not a triggerer, I wouldn't know where to begin.
12-30-2009, 09:03 AM#4
DioD
begin from attack speed modification.

attack > 400% bonus >attack >400% penalty == double attacks
12-30-2009, 11:18 AM#5
[Ð]
So can I get any extra detail here?
12-30-2009, 12:18 PM#6
DioD
gloves of speed ability best for this.
12-30-2009, 01:14 PM#7
[Ð]
Alright, now what if I wanted the Mountain King to use Attack Slam and then Spell Slam for the respective swings?
12-30-2009, 01:34 PM#8
Tot
giving him the lightning ability (dont know name; the one chimaera has, but not acid breath) and use no lightning and a different animation should work, but I'm not sure about...
12-31-2009, 06:04 AM#9
[Ð]
Well here is a list of all the animations of the model:
Attack Bash 1
Attack Bash 2
Attack Range
Attack Gold
Attack Lumber
Attack One
Attack Spike
Attack Strike
Death
Spell Bash
Spell Range
Spell Gold
Spell Gold - 2
Spell Lumber
Spell One
Spell Slam One
Spell Slam Two
Spell Slam Three
Spell Slam Four
Spell Slam Five
Stand
Stand Gold
Stand Lumber
Stand Work
Walk

I wanted to keep it simple, five 'special attack' animations and a myriad of varying attack styles, ranging from Dual Wielding (Bash) to Staves (Gold). I had also wanted to cut down on different walks and stands to save room for later updates in the map, keeping essentials such as wielding 2H swords in both hands, or holding a staff correctly.

I've tried basically everything to make the unit play specific animations (Spell Bash on spells and Attack Bash 1 then Attack Bash 2 on attack(S) but nothings working.
12-31-2009, 07:46 AM#10
DioD
try again, spellcasting animation can be set without any problems.
12-31-2009, 08:40 AM#11
Zyrixion
What you might try, and I'm speaking theoretically because I've never fooled with this, is setting up a script to detect when your mountain king does damage to something, then force the unit to play another attack animation, trigger the sound of the hit, and trigger the damage to be dealt to the unit that was attacked. It might work.

Although the triggered attack speed modification might also work, and look something like this: unit deals damage -> if unit has no attack speed ability -> give unit attack speed ability else -> remove attack speed ability from unit.

That should keep the unit from ever keeping the attack speed bonus longer than the second hit of the double hit sequence. But bear in mind your animation speeds; if they're set too low for the unit then even a 4000% attack speed bonus will still not give you your double hit because the anims play for too long. Anyways, hope some of this helps you out.
12-31-2009, 08:57 AM#12
DioD
chaos morph or any other morph into unit with much more faster attack speed and then morph back will do what you like.

ORB + searing arrows will make second attack for ranged heroes.
12-31-2009, 10:50 AM#13
[Ð]
What I'm going for here is, for example,

Unit has a crossbow, so they use Attack Range and Spell Range, but revert back to the normal walk and stand animation.
Unit has a staff, so they use Attack Gold, Spell Gold and Stand Gold, then revret back to the normal walk animation. Do I need full animation sets for each to have this work?