• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Stackable Buff based on Number of Units in an Area?

Status
Not open for further replies.
Level 10
Joined
Sep 25, 2013
Messages
521
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