HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage Aura Trigger Help

06-02-2004, 08:48 PM#1
TheXenocide
I am trying to create an aura that gives all units within the aura a +10 to attack damage. I don't want the damage to be a percentage of the units attack. So i created this trigger, but for some reason it does not work:

TrueshotAura15dmg
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units within 1000000000.00 of (Center of (Playable map area)) matching (((Picked unit) has buff Trueshot Aura) Equal to True)) and do (Actions)
Loop - Actions
Unit - Add Item Damage Bonus (+10) to (Picked unit)


This is for a TD so the fact that trueshot aura only works on ranged units is not a problem. I don't know any Jass, so if that is the only way to do this trigger coulc sombody please explain in detail how to write the trigger. I realize that i need to write a trigger to remove the bonus if the buff gets removed from the unit but i will try to do that later.
06-02-2004, 09:07 PM#2
Shimrra
Quote:
Originally Posted by TheXenocide
(Picked unit) has buff Trueshot Aura)

You should be using (Matching unit).
06-02-2004, 09:16 PM#3
TheXenocide
I figured it out but this seems very inefficient to me because it has to pick every unit every 2 seconds is there any way around doing it this way?


TrueshotAura10dmg
Events
Time - Every 2.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Trueshot Aura) Equal to True
Then - Actions
Unit - Add Item Damage Bonus (+10) to (Picked unit)
Else - Actions
Unit - Remove Item Damage Bonus (+10) from (Picked unit)
06-02-2004, 10:40 PM#4
Vexorian
isn't a damage adding aura something that was done before, by blizzard? so you can change it with the object editor?
06-02-2004, 11:22 PM#5
Shimrra
With auras, you either have to use periodic events or use object edited Blizzard Auras. Personally, I find that it's really better to just do what Lord Vexorian says and use the normal Trueshot Aura or Command Aura. (I think Command Aura raises damage) Otherwise, you have to do it this way. If the 2 seconds is too long, you cna always reduce it, but more reduction equals more lag.
06-03-2004, 01:12 AM#6
TheXenocide
The way I have made some of my Towers Attacks is by giving some of my towers a modified orb of slow ability which automatically casts the spell i want it to, so the attack of the tower is set to 2-2 damage while the spell does the rest of the damage. Since i made a few of my towers this way any auras that increase damage by a percent of the attack (i.e. trueshot and command auras) don't really affect a few of my towers because their attack is so low, therefore i had to make an aura that gave all my towers a set increase to attack.
06-03-2004, 01:31 AM#7
Shimrra
Ahhh... I see, now. Usually people just don't upgrade those merely because their advantage is the spells rather then damage, but if that's what you want then your idea is good.