Off the top of my head you could try putting a periodic effect on other units that searches for units in an area, probably a way to have it only affect the specific units you're talking about by using validators. Then have the periodic search event bestow whatever you want to happen to those units.
An example of how to get this to register in the trigger editor would be to create a dummy damage effect that does 0 damage and have a trigger event "DESIRED UNIT take DUMMY EFFECT DAMAGE", affect "triggering unit"
You could make a dummy ability, set it to autocast with your desired criteria, then if need be, hide the ability on a command card the player cant see, and then do your trigger on use of that abililty? This is untested, but its my 2c
I'm gonna try and go with the data editor on this one. I'm pretty fluent in the trigger editor but the data editor can seem a little mesmerizing at times. I have a basic understanding of how the data editor works and have created several abilities and weapons in the past.
How would I go about creating an ability that's on auto-cast, and searches an area around my unit. My effect is a "Search Area" type right now, should it be something else? How would you guys set it up?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I've tried for quite awhile now how to figure out how to do this. I've experimented quite a bit with this, and nothing seems to work.
I have a trigger for a periodic event that creates a unit every few seconds, up to a maximum of 50.
When a unit enters a certain range of one of those units, I want something to happen. I can't for the life of me figure out how to get the right unit.
I've tried using unit groups, different global and local variables, and a whole bunch of other things, does anyone know how to do this?
@NotoriousSpy: Go
Off the top of my head you could try putting a periodic effect on other units that searches for units in an area, probably a way to have it only affect the specific units you're talking about by using validators. Then have the periodic search event bestow whatever you want to happen to those units.
An example of how to get this to register in the trigger editor would be to create a dummy damage effect that does 0 damage and have a trigger event "DESIRED UNIT take DUMMY EFFECT DAMAGE", affect "triggering unit"
@NotoriousSpy: Go
As far as I know, this can only be done through a custom script. (You have to add an Event to the trigger every time a unit is spawned)
Out of curiosity, what exactly are you trying to do? This might be easier and more efficient to do in the data editor.
@NotoriousSpy: Go
You could make a dummy ability, set it to autocast with your desired criteria, then if need be, hide the ability on a command card the player cant see, and then do your trigger on use of that abililty? This is untested, but its my 2c
@DarkShape80: Go
I'm gonna try and go with the data editor on this one. I'm pretty fluent in the trigger editor but the data editor can seem a little mesmerizing at times. I have a basic understanding of how the data editor works and have created several abilities and weapons in the past.
How would I go about creating an ability that's on auto-cast, and searches an area around my unit. My effect is a "Search Area" type right now, should it be something else? How would you guys set it up?