HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Using posion concurrently with barrage

03-15-2008, 02:00 AM#1
Diablo02
I was wandering if someone could tell me how I could use barrage to shoot with poison so ALL the targets get inflicted by it. Ive tried setting poison ability (with no cooldown) to active default but when used, 4 targets were hit normally, but poison was ONLY allied to ONE target out of the four.
So that doesn't work...

Any ideas?

I have been told about dummy units... but how would these work? (meaning... if there are lets say 20 targets, how will the dummy unit shoot the same unit as the barrage ability is?)
03-15-2008, 02:12 AM#2
Tide-Arc Ephemera
The dummy units would work by creating one unit for each target, granting it the required ability and then forcing it to attack.

Dummy units are the only way to go as far as I know.
03-15-2008, 03:55 AM#3
darkwulfv
Yes, but how would you know which targets the barrage was hitting?

As far as I can tell there's no easy way to go about it.
03-15-2008, 04:01 AM#4
Tide-Arc Ephemera
Barrage adds an additional attack to all units within X of the attacked unit as far as I know. Excuse my pseudo-code-methodology-type-thing but I believe it would work along the lines of...

Code:
You will need some variables:
INT_TARGETS (integer for counting)
LOCATION (point, if you're using points)

> Pick all units withing range of LOCATION
- If INT_TARGETS is <= 5, then
-- Create unit
-- Order last created unit to attack picked unit
-- Add expiration timer to last created unit
-- Set INT_TARGETS = INT_TARGETS + 1
- Else
-- Do nothing

Something along those lines should work.
03-15-2008, 04:11 AM#5
darkwulfv
Barrage has limited targets though, if I remember correctly. I mean, if it's unlimited then yes, it's very simple. But if Diablo02 has set a limit, then it's very hard to do.
03-15-2008, 04:40 AM#6
Tide-Arc Ephemera
That's why it states "If INT_LIMIT is <= 5" or something. So long as that integer is below X (the number of targets), then it will fire. Once it reaches that limit, however, it will stop shooting.
03-15-2008, 04:53 AM#7
midiway
Quote:
Originally Posted by Tide-Arc Ephemera
That's why it states "If INT_LIMIT is <= 5" or something. So long as that integer is below X (the number of targets), then it will fire. Once it reaches that limit, however, it will stop shooting.

BUT you can't guarantee that your Pick all units withing range will pick the same units targeted by Barrage
03-15-2008, 05:05 AM#8
Nuclear Arbitor
barrage simply attacks x number of units, i believe its 3-9 or something, with in the units attack range (maximum, it doesn't care about minimum) according to its targeting data. its too bad u cant have it caste spells on the target when hit.
03-15-2008, 05:09 AM#9
Tide-Arc Ephemera
Quote:
Originally Posted by midiway
BUT you can't guarantee that your Pick all units withing range will pick the same units targeted by Barrage
How about checking what a unit is via boolean comparisons?
03-15-2008, 07:20 AM#10
midiway
Let's take a tank with Barrage that can only hit 5 targets and there are 20 flying units around it and in range of his attack, so you would enum this 20 units using GroupEnumUnitsInRange and will count and manage 5 of this units, but how can you guarantee that this 5 units are the ones target by barrage? Wich boolean comparison?
03-15-2008, 09:44 AM#11
Tide-Arc Ephemera
Oh... no wonder I was missing something... I thought you guys were talking about detecting the TYPE of the barrage target.

The concept I was attempting to produce was to use a dummy ability and trigger the entire thing.
03-15-2008, 04:03 PM#12
Diablo02
Hmmm... I was thinking something like...
check what unit is hit by this tower/unit (with barrage),
if true give a poison buff
else do nothing

i dono if this is just my imagination or what ... but what about that? -could it be done/work?
03-15-2008, 05:40 PM#13
darkwulfv
It won't work. Barrage doesn't give off a buff or something similar that could do that.
03-15-2008, 07:34 PM#14
Hunter of Shadows
Just trigger the ability, learn JASS and do it! xD

Barrage would never work for giving a buff, or at least not in a nice way

IMO anyway
03-16-2008, 07:41 AM#15
Anything.
You *could* trigger the Barrage with Dummies and chain Poison attack to it, but if the unit with Barrage doesn't have a set damage amount, then you're going to have problems (which can be resolved by calculating the damage dealt within the trigger itself).