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!
I'm trying to make triggered spell called "Grab Item" which gives the nearby item in proximity to the hero. Does soemone know how to grab nearby item? It can be random if there are more nearby items.
Hero - Give (Random item in (Playable map area)) to (Triggering unit)
You can pick an item in a region. Problem is: Regions are no circles, but you can use matching condition to check if the distance is smaller than a certain range.
Random item in rect is a rectangular area to search for items.
As there is no items in range you need to use (items in region matching distance to grabbing unit less than ...) to have an items in range function.
You could also put the distance comparison within the picked items function and let it pick the closest item.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.