HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dual/Triple Attack spell - design good or bad?

08-19-2004, 09:38 PM#1
wheee
Hey,

I'm working on a dual/triple attack spell, and I came up with a working trigger that goes as follows:

Event: A unit is attacked.
Condition: (Attacking unit) is a hero.
Actions:
Set Attacking unit's collision off
*1* Create Copy of Attacking Unit (anywhere)
Set Copy of Hero's collision off
Move Copy of Hero onto Attacking Unit's position
Animation - Copy of Hero does ATTACK animation
Set Attacking unit's collision on
wait 0.5 seconds
Remove Copy of Hero

So that's for a dual attack. Essentially the visual that I'm trying to obtain is a hero doing a double attack. You'll see the original hero doing the attack, then you'll see this "matrix-like" after-image of the copy hero doing an animation. As for the damage, I will have to calculate the 2nd attack damage and use the new 1.17 action to do it.

Questions:
1. Is there a better of way of doing this?

My concern is with the *1* in the trigger. You could create the EXACT same hero, cast banish on it (to make it see through and bloodlust to make it slightly bigger) to achieve the same effect. However, I'm not sure if this is a good idea. I rather make a dummy UNIT using the same model as the hero, and give it ETHERAL ability, cast bloodlust on itself upon creation, and use that.

2. I couldn't give the *1* copy an expiration timer of 1s because when it expires, it's NOT removed from the game so I ahve to remove it anyway, AND it'll make the dying animation/sound as well which is annoying. How can you disable that, if possible?

3. Will using the wait command cause any problems when using this in a multiplayer setting?

2. Is there a way to determine how much damage is done? I want the 2nd damage amount to be based on the 1st daamge amount)