Okay, maybe not the most clear thread title, so let me explain. Since the "unit comes within range" event only allows checks for pre-placed units, I used one trigger to add a hero (let's call the hero 'John') that learns a particular ability as an event which fires when other units come within range of said hero.
Now, the problem I'm having is referencing John. Within the trigger, "triggering unit" and "entering unit" returns the unit which entered within range of John, but none of the event responses can be used to reference John himself. Also, I can't store John into a global since I need this MUI (there will probably be multiple Johns running around the map).
So how the hell do I save John's handle? I need to know who John is so I can make some checks regarding the level of his abilities, and to check whether or not the unit entering within range of John is his enemy.
Now, the problem I'm having is referencing John. Within the trigger, "triggering unit" and "entering unit" returns the unit which entered within range of John, but none of the event responses can be used to reference John himself. Also, I can't store John into a global since I need this MUI (there will probably be multiple Johns running around the map).
So how the hell do I save John's handle? I need to know who John is so I can make some checks regarding the level of his abilities, and to check whether or not the unit entering within range of John is his enemy.