| 05-02-2006, 04:56 AM | #1 |
I have a problem with adding a buff when you cast a spell. I tried using This but it isn't working. I tried using frost armor but found when use along with my other spell that gives a buff using frost armor it will remove the old one. I need a simple way to give a buff to a unit. I will have alot of different buffs |
| 05-02-2006, 05:07 AM | #2 |
As far as I know, you can't prevent a buff from overlapping its parent buff. The simplest way to give a buff to a unit is spells such as shadow strike, drunken haze, curse, etc. Another way is give the target of the spell an aura like perma immo (has no icon) and remove it from the target after the timer ends. |
| 05-02-2006, 05:37 AM | #3 |
i looked and there are not enough spells that give an buff to have one for each buff, also i found channel doesn't give a buff. |
| 05-02-2006, 05:45 AM | #4 |
Well, if you need this for your thorn's damage skill (or whatever its callled), you could always save the unit without buffs (using gamecache preferebly) and just check if the unit being attacked is a unit saved in the gamecache under this category. |
| 05-02-2006, 05:56 AM | #5 |
But then the player won't know what buffs he has. |
| 05-02-2006, 06:10 AM | #6 |
Yea its a trade-off because pretty much, you have no buffs left to use but you must use a buff. The only solution I can say is that you can make a second copy of every buff (based off a different buff) you use (along with the spells). Then when an ability is cast, you go through the unit and decide if there are any buffs that might conflict. If there are, then you create a dummy unit that casts the second copy of that buff onto the target unit. Of course, its going to be reallly cumbersome. May I ask, what are you trying to make that used up all the buffs? ![]() |
| 05-02-2006, 06:21 AM | #7 |
the spells for all the classes in my map I am just guessing but i should have around 50-100 buffs now of course each buff has a different length of running and some are debuffs(which give a bad effect (i.e. does 35 damage over 12 secs)) |
| 05-02-2006, 11:49 AM | #8 |
You can give your unit as many Tornado Aura abilities as you want. Make the aura only target self and the unit will get the buff. You can get multiple buffs with this, and the ability is invisible. |
| 05-02-2006, 02:43 PM | #9 |
the buff has no duration |
| 05-02-2006, 02:46 PM | #10 |
You will need a timer to remove the buffs. Another possible method of adding buffs is an aura in a disabled spell book. Has the advantage of being able to grant certain effects if you don't want to trigger them. |
| 05-02-2006, 02:49 PM | #11 |
buffs are being triggered |
| 05-02-2006, 02:57 PM | #12 | |
Quote:
|
| 05-02-2006, 03:21 PM | #13 |
that would mean a ton of timers as this is multi-unit (meaning more then 1 unit can have the buff at one time) |
| 05-02-2006, 03:29 PM | #14 |
Make it multistanceable? |
| 05-02-2006, 03:33 PM | #15 | |
Quote:
NO! NO NO! You do not have to use auras in a disabled spellbook. Can't you read other's posts before you reply? Let me state clearly about the ability 'Slow Aura (Tornado)', aka 'Aasl':
So if you ever want an ability that "just adds a buff", use this. |
