HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding damage to buff

12-20-2006, 02:57 AM#1
Odin845
Yea, I want make a buff that adds 5 damage how would I do this, I am just using GUI.
12-20-2006, 03:02 AM#2
xombie
You would have to make an ability that gives you +5 damage as well as the buff. Buffs are solely for interface they have no effect whatsoever. The ability is what carries the effect.
12-20-2006, 03:37 AM#3
zen87
use a loop that adds 5 damage, then exitwhen the buff is no longer on the unit, end of the line will be removing the ability (+5dmg)
12-20-2006, 06:02 AM#4
Odin845
Thanks for the helps, but how do you add to their damage, I can't seem to find the action that adds to their damage.
12-20-2006, 06:09 AM#5
zen87
add ability that adds damage, ability on claws of attack for example.
12-20-2006, 08:03 AM#6
xombie
Quote:
You would have to make an ability that gives you +5 damage as well as the buff

Quote:
add ability that adds damage, ability on claws of attack for example.

Is there an echo in here?

Edit: You do not have to have the +5 damage ability give a buff, rather another ability that gives a buff that would be paired up with the damage ability. For instance, if you had a Blades of Attack ability (item ability so it doesn't show on the UI) and another item ability (devotion aura, for example, that gives a buff) that has no real stats and is just used to give the buff; that would give you the effect that you desire.

Odin: Go to the <Abilities> tab in the Object Editor, and right-click on the left-side panel. Click on 'Create Custom Ability'. Now, click on the dropdown menu and select Item Abilities or w/e it is and find Blades of Attack +6 (doesn't matter what the damage is, since its editable). Change the "Damage Bonus" category to 5 instead of 6. Now, create another item ability from 'Devotion Aura' the same way you did Blades of Attack, except set all the stats to 0. Change the buff to the buff that you want.
12-20-2006, 11:41 PM#7
Odin845
Okay, thanks very much for all the help but I am still not sure about some things.

So I need a dummy ability that gives the buff, but does nothing and I also need an item ability that gives +5 damage right?

I don't get how to detect when a unit has the buff and when a unit doesn't, so I can take the +5 damage off.

I don't really understand what a loop is, if you do it 1 to 10, does that mean it will just repeat the loop 10 times?
12-20-2006, 11:48 PM#8
xombie
I'm not sure what your problem is, I'd have to know how you are using the buff in-game to be able to fully understand your problem. In terms of loops, yes. If you have a GUI 'For Loop' that starts at 1, and ends at 10, it will do something 10 times, carrying the integer (Integer A) through each time.
12-21-2006, 12:30 AM#9
Pyrogasm
An example for you (it's probably leaky and laggy as hell, but it's just an example)
Trigger:
Collapse Events
Time - Every 0.3 seconds of game-time
Conditions
Collapse Actions
Unit Group - Set Damage_Buff_Group equal to (Units in (Playable map area))
Collapse Unit Group - Pick every unit in Damage_Buff_Group and do (Actions)
Collapse Loop - Actions
Unit - Remove (+5 Damage Ability) from (Picked Unit)
If ((Picked Unit) has buff (Damage Buff)) then do (Unit - Add (+5 Damage ability)), else do (Do nothing)
Custom Script: call DestroyGroup( udg_Damage_Buff_Group )
What that does it pick every unit in the map, remove the damage adding ability (so that they don't begin to multiply) and then re-adds the ability if they have the buff.

If you just need to add the damage to units in an area, you could base a dummy ability off of command aura, check the "Flat bonus" field, and set the damage bonus to 5; then add the dummy ability to a dummy unit located at the point where the damage buff is supposed to be present. Or, if it's from a hero, just use a disabled spellbook to add the dummy command aura to the hero.
12-21-2006, 12:58 AM#10
WILL THE ALMIGHTY
here's the thing, why a buff that adds damage?

There are multiple abilities that give damage: claws of attack being the best example. I doubt the icon shows on the UI, so it will seem like the guy simply has +5 dmg.

Precise what you want, please and how you will use it.

The trushot aura adds damage as well, simply edit the settings.
12-21-2006, 01:21 AM#11
Odin845
Sorry if I wasn't very clear, I just wanted a inner fire that adds 5 damage.
12-21-2006, 03:11 AM#12
xombie
Is inner-fire something that another unit is going to cast on you? Or something you cast to buff up your damage. If its something somebody else casts on you, just look through the Object Editor until you find an ability that is a unit-cast and gives +damage. I know there is one or two in there.

If you want it to be self-cast, simply make it from Battle Roar and give +damage, with no other withstanding effects. Battle Roar also gives a buff that you can change.

Just to point it out -- this thread has nothing to do with triggers or scripts.
12-21-2006, 05:44 AM#13
Odin845
Dang, sorry. I couldn't find an ability in the object editor that would have another unit cast it on me and lets you change the damage, so I thought I had to do it with triggers.

I still can't find one, I'm dumb.

The trigger Pyrogasm posted was what I was trying to get though, even if I can do it just with something in the object editor, thanks very much.

I'll stop posting in this forum, I have no idea what I am doing. Sorry again for starting a thread in the wrong place.
12-21-2006, 05:49 AM#14
xombie
Nah its not that bad, its more half 'n half. You didn't know that you didn't need triggers to get your effect across, so its an honest mistake. Besides, I'm not a moderator =P
12-21-2006, 07:20 PM#15
Odin845
For Pyrogasms trigger, you first removed the ability and then added it, would that mean the damage bonus would dissappear for a very small moment?