I am doing this in my campaign:
Create a spell book with all possible abilities you want, with in mind those abilities require the techtree of a dummy unit. When the unit reaches X conditions, create the dummy unit, with locust, no model, and no sight, somewhere. When they leace those conditions, pick all those units owned by that player and remove them