• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Multiple attack

Status
Not open for further replies.
Level 10
Joined
Apr 9, 2004
Messages
502
I recently played a tower defense with some nifty features. Anyways, one of the towers was able to attack 4 times in a short interval per attack. Now it wasn't a low attack cooldown but rather it would attack 4 times shortly, wait like 1-2 seconds and then again and if the targeted unit is killed the tower would automatically attack another target with the remaining rounds. Does anyone know how this was done (i'm assuming it worked ewith a dummy unit but chances are not because it never lagged so i'm pretty sure it wasn't that plus it was multiinstanceable.)
 
Level 5
Joined
Jun 22, 2004
Messages
109
if i am understanding what you are saying, you could simply use the barrage ability and make it target enemy units instead of buildings, also you can change the missle for it. but i am not sure if u are talking about somthing like that or, an ability like Searing Arrows, where everytime it is cast it will shoot multiple units. can u be more specific?
 
Level 10
Joined
Apr 9, 2004
Messages
502
No it attacks the same unit 4 times per interval with the specific damage shown. If it kills said unit while midway through the 4 attacks it will tagret another unit and finish them. It's not an extra ability either from what i can gather.

It's every interval where a unit would normally attack a unit once, it attacks 4 times in a short period.

ie attack-wait cooldown time-attack etc.

it goes attack-attack-attack-attack-wait cooldown-attack-attack-attck-wait-etc
 
Level 5
Joined
Jun 22, 2004
Messages
109
no i think he means that the unit attacks 4 times really fast,( instead of a hero attacking once and shooting one missle, the units will shoot 4 at that one attack) but im pretty sure u can use triggers to do that. prolly use a generic unit event (attacks) then set condition to, attacking unit= to ur unit
then action would be something like increase attack speed of last created unit by X, wait X seconds.

this shoudl do it im pretty sure.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
No... Actually, the bloodlust part is not the best. The problem is that he wants the tower not be able to attack after a number of seconds. So, what do you say if we combine bloodlust with entagling roots? Bloodlust, followed by entagling roots. Not the best but it masks everything.

~Daelin
 
Level 2
Joined
Apr 27, 2005
Messages
12
I think this skill is somewhat similar to Geminate Attack from DotA Allstars.

The hero with this skill attacks twice (very fast, just like one attack) once every X seconds depending on the skill level. If you could just get the code for that skill and modify it to make it attack 4 times instead of 2, your problem is solved.

Anyway, I thought of something, but I'm not sure this will work. Create a custom unit: Unit1, Unit2, Unit3.
Set their Attack Cooldowns to something very low, and their projectile arts and attack damage just like the tower you mentioned. Create a trigger that:
If tower attacks, if this has skill, create unit1 in position of attacking unit, order to attack attacked unit, wait ATTACK COOLDOWN seconds, then remove it. Do the same for each Unit[x]. I think this will make the tower attack (showing the projectile) then before it reaches the target, Unit1 will show and attack, remove, Unit2 will show and attack, remove, and finally Unit3 will show and attack, remove. It will look like the unit was attacked 4 times. Of course, the dummy units should have the locust ability and must have no model.

I don't think it will change targets during the cycle though, and if the tower has a very fast aspd, it can attack another unit while the dummy units attack the other unit.
 
Level 2
Joined
May 2, 2005
Messages
20
You could do this by setting the cooldown on the unit to 0 and create a trigger that sets the custom value of the unit (Current custom value + 1) when ever it attacks until it reaches 4. And then once it reaches 4 you can pause the unit for X seconds and after that reset the custom value to 0.
 
Level 2
Joined
Jun 5, 2004
Messages
5
He is talking about the map "Lasers & Rockets TD" where the Rocket tower attacks 4 times in one single attack.

I've read that this effect can be done using Barrage as a base ability, but I've tried to turn it into a "Multi-shot" hero ability, and it just takes up an ability spot, so I'm still trying to figure out how to make it work.

But maybe someone else can help with this info.
 
Level 2
Joined
May 2, 2005
Messages
20
Enemisses said:
He is talking about the map "Lasers & Rockets TD" where the Rocket tower attacks 4 times in one single attack.

I've read that this effect can be done using Barrage as a base ability, but I've tried to turn it into a "Multi-shot" hero ability, and it just takes up an ability spot, so I'm still trying to figure out how to make it work.

But maybe someone else can help with this info.

Barrage would make it a "spread fire" type attack. I think what he's trying to get at is a "burst fire" type thing, think of the Battle Rifle from Halo 2. If he's going for the "burst fire," then what I said would work because I have it implemented in a map of my own.
 
Level 2
Joined
Jul 30, 2005
Messages
11
arpha_storm said:
I think this skill is somewhat similar to Geminate Attack from DotA Allstars.

The hero with this skill attacks twice (very fast, just like one attack) once every X seconds depending on the skill level. If you could just get the code for that skill and modify it to make it attack 4 times instead of 2, your problem is solved.

Anyway, I thought of something, but I'm not sure this will work. Create a custom unit: Unit1, Unit2, Unit3.
Set their Attack Cooldowns to something very low, and their projectile arts and attack damage just like the tower you mentioned. Create a trigger that:
If tower attacks, if this has skill, create unit1 in position of attacking unit, order to attack attacked unit, wait ATTACK COOLDOWN seconds, then remove it. Do the same for each Unit[x]. I think this will make the tower attack (showing the projectile) then before it reaches the target, Unit1 will show and attack, remove, Unit2 will show and attack, remove, and finally Unit3 will show and attack, remove. It will look like the unit was attacked 4 times. Of course, the dummy units should have the locust ability and must have no model.

I don't think it will change targets during the cycle though, and if the tower has a very fast aspd, it can attack another unit while the dummy units attack the other unit.

Geminate Attack is really quite a smart ability. It's not trigger enhanced at all.

The spell is based off of Orb of Slow. Instead of the slow ability as the effect, it uses a 0-bonus damage Searing Arrows-based ability. The projectile art and speed match that of the Weaver's basic attack. Therefore, whenever the spell fires (it's set at 100% chance with a 7/6/5/4 sec cooldown), it will target the Searing Arrows which does precisely basic attack damage without any screwups, so long as there is no bonus damage, and it will look like a second attack.

Of course, this only works if you want to do a double attack. As far as more than two, I really am in the dark, as I've been trying to do it myself.

Hope that helped.
 
Status
Not open for further replies.
Top