HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Barrage(ish) while moving?

07-18-2006, 11:22 AM#1
realllama
I wish to have an attack like barrage where i can attack multiple targets, set amount, every cooldown period while moving and if there are not X many targets within range, the attack focuses more than one missile on the units that are in range. I want it to be reliable, always send the same number of missiles no matter how many targets or whatever. Barrage doesn't work while moving. Phoenix fire is very unreliable. What can i do?
07-18-2006, 11:38 AM#2
karukef
Such complex behaviour must be custom scripted with JASS or GUI-triggers.
07-18-2006, 01:52 PM#3
realllama
Quote:
Originally Posted by karukef
Such complex behaviour must be custom scripted with JASS or GUI-triggers.

I can do it with gui triggers by using the 'Unit - Damage Target' normal trigger.. The problem there lies is the missile effect... i have tried to do this with WEU and the 'Advanced - Special Effect - Create Missile Effect' trigger, but it is so delayed that it looks like the missiles are coming from where the attacker was a second ago...

Any help with this would be greatly appretiated...
07-18-2006, 02:51 PM#4
Vexorian
You could try caster system's projectile functions instead, but well that's a problem to implement and use, you know
07-18-2006, 05:18 PM#5
harshateja
For the projectile, you could create a dummy unit and tell it to attack (make sure you set its damage to 0 - 0)
07-18-2006, 07:01 PM#6
Vexorian
seems easier to make a dummy unit cast modiffied acid bomb
07-18-2006, 09:36 PM#7
vile
Quote:
Originally Posted by Vexorian
seems easier to make a dummy unit cast modiffied acid bomb

Well said.

I've made an autocastable multiple shot like you did vexorian, only I based mine on dummy units casting acid bombs on nearby targets. Additionally you can also check the number of units in range, and if there are none, dont order it to autocast. That fixes up the max arrow speed limit you had on your autocastable multishot.

Great function to check the angles there, helped me heaps.

This idea can just be used the same for casting it while moving.
07-19-2006, 02:26 AM#8
realllama
Ok, i understand the 'units order to attack' method... i just yesterday, right before you (vex) posted downloaded your casting system for the first time to have a look at it, so i'm still a little lost on that... i don't get the hint with acidbomb, but i'll give that a try also... I'll give this stuff a go and get back to the post here..

sidenote: how would i be able to obtain a personal forum with the jass and trigger tags in it, without just coding it myself...

OK.. well i got it set up on the Caster System.. but, it still seems to hit anywhere between 5-6 units with the missiles depending on how far away the attacker is.... for example... i can start the map up with a shooter beside some units that basically have 0 movement speed and a lot of health with no regeneration and no armor. When i do this, the missiles will start hitting 6 targets... and continue to hit those very same 6 targets until i get so far away from them, then it begins hitting only 5 of them.. and hits 5 of them until i go completely out of the range for attacking. The catch here is, there's other units exactly the same unit type that are closer to the attacker as it moves away. when i go back toward the 'sticks in the mud' it still has those same 5 targets acquired, right up until i get very near again to the whole group and it then acquires the same 6 it had before i moved away.

hope this makes sense... but, i'm basically wanting it to always attack 6 units. as long as there's 6 units within range that are alive, attack them.

I'll add my triggers/code in a sec...



Please excuse my lame array... -.-

I changed the stuff between the ........ lines to this:

Zoom

but, it still seems to be off on the number of targets sometimes...

(how do i know it's off? i put like 100 units with 50 health no regen no armor on the map and adjusted the ability to do 50 static damage, then i count the units owned by that player still on the map and are alive...)