| 08-26-2009, 04:57 AM | #1 |
Hi I'm trying to make a spell, but I can't figure out to make it so the spell only affects allied units within range of the caster. I'm also trying to add buffs to the effected unit, any suggestions? (ps: I'm using triggers not code) |
| 08-26-2009, 06:09 AM | #2 |
You can't add buffs to units, because that does nothing. You can, however, create an invisible unit (it's called a dummy unit), and make it cast a spell on another unit. To make the spell only affect allied units in range, you would have to create a group (in GUI, they are called Unit Group) and put all allied units in range in that group. Then you can apply the effect to all of them. |
| 08-26-2009, 07:36 AM | #3 |
Or, you could use an area of effect spell on the hero to apply the buff. Then, for the triggered part of the spell, check all units in range with the buff and do your stuff with them. Another way to display the buff could be by giving the unit a self-affecting aura (tornado slow aura is very suitable for this because it doesn't display an icon on the command card), simply add such an aura to all the units you want to affect by the spell and remove it when the spell ends. Triggering buff spells this way can be tricky business, what if for example the spell is cast on a unit already under the effect of the spell? That's why I made my ABuff system. |
| 08-26-2009, 08:24 AM | #4 |
That was a great help, but I'm still stuck with one thing. I also want to increase the attack speed of the units affected but once again am unable. ideas? (ps: +1 reputation Anitarf) |
| 08-26-2009, 10:25 AM | #5 |
You could give the casting unit a modified endurance aura, which doesn't give any movement speed bonus. |
| 08-26-2009, 01:13 PM | #6 | |
Quote:
|
