HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

4 Auras

07-28-2005, 10:45 AM#1
Thunder_Eye
I got 4 Auras, for now we call them
Blue, Red, Green and Yellow.

I want the Blue to only effect on Blue units, the Red on Red Units etc.
(Not Player Red, just classification)
How to do it?
07-29-2005, 09:20 AM#2
Anitarf
Well, you would need to find 4 classifications that you don't use otherwise and that can be chosen in the targets allowed field and name them red/blue... two of them that I can think of are aincent and... suicidal, I think, these two are nice because you can also choose non-aincent as a targets allowed field.
07-29-2005, 11:05 PM#3
Vexorian
I would say that a trigger is the best way in this case
07-30-2005, 03:17 PM#4
Thunder_Eye
Ok Ive tested these classifications.
Ancient, works
Air, works
Mechanical, works
Suicidal, dont work

How would I do this in triggers then?
08-02-2005, 06:49 PM#5
kefkasr
well, i think that anitarf's idea is the best way.

But, if you want to do it with triggers, try the following:
a. pick all units in unit group of all units of type A within B radius of position of random unit of type C and do multiple functions
b. (apply buff D to picked unit)

dunno if that would work.
08-03-2005, 04:38 PM#6
Thunder_Eye
I dont think that random unit of type C would work well.
shouldnt there be any better way?
and I dont think there is any
"Pick all units of type withing <area>"

probably Pick all units in <area> matching " " and do multiplie functions
08-05-2005, 12:29 AM#7
kefkasr
the map editer is weird like that, it doesnt have that combo.
but yeah, do as you said. you can always resort to matching conditions statements
08-05-2005, 01:19 AM#8
Thunder_Eye
Well as I just said I dont think that will work so well. Because if a unit leaves the aura range It still got the buff,
might be some other problems too.

Isnt there an easy way?
08-08-2005, 10:06 PM#9
Bandnerd06
another classification you can use is "organic"
08-09-2005, 02:29 AM#10
CronoImprezaWRX
undead, hero, air, ground, enemy, neutral... tauren is a good one....
08-14-2005, 08:24 PM#11
Thunder_Eye
enemy,neutral,air,ground,hero wont work

and how to classify a aura to undead and tauren?
08-20-2005, 01:37 PM#12
Thunder_Eye
*bump*
09-03-2005, 11:28 AM#13
Thunder_Eye
*bump*
09-03-2005, 02:10 PM#14
Tim.
A trgger such as you said would work. Just check for matching unit types every 1 second. Then, if the unit is not within the range, just remove the buff.
09-03-2005, 02:14 PM#15
Thunder_Eye
Well then I assume I'll use that..
Am I stupid or why cant I find the Add buff trigger? Or how else whould I apply the buff to the unit?