• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Stackable Buff based on Number of Units in an Area?

Status
Not open for further replies.
Level 12
Joined
Sep 25, 2013
Messages
655
not a chain, more like an aura, where each unit of a type, say footmen for now, get a bonus depending on how many other footmen are within their vicinity. So, somehow it checks 250 area around every footman, counts the number of other footmen in that area, and adds a bonus based on that number.
 

EdgeOfChaos

E

EdgeOfChaos

Create a unit group with Units in Radius (250) matching condition (Is Ally, Is Alive)
Set an integer to number of units in group
Set a dummy ability that provides a bonus to that number + 1 (because level 1 will do nothing)
Clear leaks

Checking every 0.5 seconds or so should be fine.
 
Status
Not open for further replies.
Top