• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Stacking Buffs?

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2013
Messages
1,105
I'm not sure if that's the best title, but I'm trying to make a skill comparable to Sticky Napalm from DotA-- this skill targets a ground area AoE. And all units in it are then given a buff, this can be "stacked" up numerous time. (There is 1 buff icon placed on the afflicted unit) Also the number of stacks is easily countable for any particular unit to then be used in other calculations.

I tried to think of a way to do this, such as having a dummy unit place a different buff on it each time the spell is used on it, and then counting the number of buffs by type, but this wasn't easy or practical in my opinion.
Also I thought about each time the spell is used it adds the units in the AoE to a unit group and if they're in group 1, move them to group 2, then move to group 3. But what ended up happening was they would just get moved to the final group -.-.

Possibly I'm going about this all wrong, I would love to get some tips from anyone.

Thanks!
 
The easiest way to do this is by using a levelable tornado aura ability [targetting "self" only, slow parameters 0] (tornado aura because it does not have an ability icon, but has a buff icon). For each spell used on the unit, increase the tornado level by 1. When the duration ends or a buff is dispelled, decrease the level by 1. If the level was 1, then remove the ability.
When doing this, make sure to preload the ability by adding it to a dummy unit placed on the map initially and then simply remove the unit after the game started.

More elegant solution, however, is this, but it's not approved yet:
http://www.hiveworkshop.com/forums/submissions-414/snippet-needs-work-buff-230697/index2.html
 
Status
Not open for further replies.
Top