I want that the trigger creates a "Magical Arrow(MAKER)" on using the Ability "magical111121". The "Magical Arrow(MAKER)" should live for 20 seconds for example. And, !ONLY" if a enemy unit comes in his range(500), the "Magical Arrow(MAKER)" should be removed and then the trigger should create "Magical Arrow(MISSILE)", which lives only for 8 seconds! But only when a enemy unit comes in his range.
give the unit an aura with 500 range (no effects) and detect if a unit has that buff, when a unit has the buff (is within range) create that missle 8 sec thing
ps: if the casting unit is placed in editor u can just use the function: unit comes within range (can only select in WE units and no variables)
Problem with aura solution is that buff preserves for something about 2 sec even if unit is gone. More "exact" is pick every unit in range of 500 from position of unit you want.