Can a unit have multiple instances of the same ability with different levels?

Status
Not open for further replies.
Level 12
Joined
Nov 3, 2013
Messages
989
I'm going to be placing dummy units with multiple auras that share the same buff and effect, but may have different range, target and/or varying degrees of increase/decrease.

I'll have a dummy unit with devotion aura which give +5 armor to allies within 2000 units and -5 to enemies. Another with +/-10 within 1500, +/-15 within 1000 and so on.

So the idea is that the effectiveness increases for nearer units and decrease if they are farther away.

Do I have to either make multiple dummy units on the same spot or multiple abilities instead of just having say 6 levels of the same devotion aura on the same dummy unit? Like level 1 could give that +5 to allies, level 2 could give -5 to enemies, level 3 +10 allies etc.

I mean it's not really that big of a deal to have multiple dummy units at the same location but if you can have less you'd rather, right?
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
Make a spellbook andplace all the effect abilities (devotion auras) inside it.
I suppose that you could try to fiddle with it so they will use the strongest one, but I am not sure.

If you want to hide the spellbook from the UI, then you can disable that ability for all players at map init with triggers.
 
Level 12
Joined
Nov 3, 2013
Messages
989
How do I make them have different levels though? Like would I add the first spell book first, increase level of ability id, add 2nd and increase level of ability id again etc?

Or how could you possibly do it? Idk how I'd tell any difference between them, even if I had 6 different instances of the same ability how can I make them have their own level?
 
Level 12
Joined
Nov 3, 2013
Messages
989
ok, I just thought it might be possible since your unit supposedly get the abilities from items and those stack.

But like I said having multiple dummy units isn't really that big of a deal.
 
Status
Not open for further replies.
Top